-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix date type issue - Add quickstart script - Update Readme
- Loading branch information
1 parent
ff716db
commit 595ae7f
Showing
7 changed files
with
99 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.git* | ||
.git* | ||
assets/frontend-demo.png | ||
scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
# Set environment variables | ||
MYSQL_ROOT_PASSWORD=admin | ||
MYSQL_DATABASE=devdb | ||
DATABASE_URL="mysql://root:$MYSQL_ROOT_PASSWORD@localhost:3306/$MYSQL_DATABASE" | ||
CORS_ORIGIN="http://localhost:3000" | ||
JWT_SECRET="super-secret" | ||
|
||
# Pull the latest MySQL and Horus Holdings images | ||
echo "Pulling the latest MySQL and Horus Holdings Docker images..." | ||
docker pull mysql:latest | ||
docker pull ghcr.io/jordojordo/horus-holdings:latest | ||
|
||
# Run the MySQL container | ||
echo "Running the MySQL container..." | ||
docker run -d --name mysql-dev \ | ||
-e MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD \ | ||
-e MYSQL_DATABASE=$MYSQL_DATABASE \ | ||
--network host \ | ||
mysql:latest | ||
|
||
# Wait for MySQL to initialize | ||
echo "Waiting for MySQL to initialize..." | ||
until docker exec mysql-dev mysql -uroot -p$MYSQL_ROOT_PASSWORD -e "USE $MYSQL_DATABASE;" 2> /dev/null; do | ||
echo "Waiting for MySQL to be ready..." | ||
sleep 2 | ||
done | ||
|
||
# Run the Horus Holdings container | ||
echo "Running the Horus Holdings container..." | ||
docker run -d --name horus \ | ||
--network host \ | ||
-e DATABASE_URL=$DATABASE_URL \ | ||
-e CORS_ORIGIN=$CORS_ORIGIN \ | ||
-e JWT_SECRET=$JWT_SECRET \ | ||
ghcr.io/jordojordo/horus-holdings:latest | ||
|
||
echo "Horus Holdings is now running!" | ||
echo "Frontend is accessible at $CORS_ORIGIN" | ||
echo "Backend is accessible at http://localhost:5000" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters