cloudacademy / pizza-time

This repo is part of the Hands-on preparation for the AWS Certified SysOps Administrator exam course at Cloud Academy
MIT License
6 stars 11 forks source link

Certified SysOps Administrator for AWS

This repository is part of the SysOps Administrator — Associate Certification for AWS Learning Path

Further material

Pizza Time!

Run the dev environment (local)

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

Deploying to Elastic Beanstalk

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

Deploying API instances

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.

Angular app

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.