Giter Site home page Giter Site logo

ramn01 / pizza-time Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudacademy/pizza-time

0.0 1.0 0.0 1.5 MB

This repo is part of the Hands-on preparation for the AWS Certified SysOps Administrator exam course at Cloud Academy

License: MIT License

Python 22.96% CSS 1.16% JavaScript 29.64% HTML 43.74% Shell 2.49%

pizza-time's Introduction

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
  • Create the RDS database
  • Create a new application on Elastic Beanstalk (EB)
  • Create a new environment inside the EB application, make sure that you will use Python 2.7
  • Download this repo
  • Change the Environment Variables in the django.config file
  • Open a terminal inside the the repo's folder
  • Type the bellow command to configure the EB environment in your repo and follow the wizard
eb init
  • Type the bellow commands to stage your changes and deploy the app to EB
git add .
eb deploy --staged

###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.

pizza-time's People

Contributors

ericovis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.