This repository is part of the SysOps Administrator — Associate Certification for AWS Learning Path
You need to have Docker and docker compose installed and configured on your computer.
To download/clone the repo and in the project's folder type:
docker-compose build
That will build the container. Once it's done run the bellow command to start the DB container:
docker-compose up db -d
Now run these commands to configure the database and load the initial data:
docker-compose run web python manage.py migrate
docker-compose run web python manage.py loaddata initial_data
Now you are ready to run the app, to start the web server use this command:
docker-compose up
Before starting you should have the AWS CLI and the EB CLI installed and configured in your machine:
pip install awscli
pip install awsebcli
aws configure
eb init
git add .
eb deploy --staged
Take a look at the install-pizza-time.sh script an make the needed changes in the Environment Variables to point to your database instance. Then use the script as the User Data script in your instances or Launch configuration.
The Angular files are available at the Frontend folder, make sure that you will change the variable called "$rootScope.APIURL" in the main.js file to point to your API endpoint.