Skip to content

LondonAppDeveloper/c2-hello-world-api

Repository files navigation

Full-Stack Consulting and Courses.

Website | Courses | Tutorials | Consulting



C2 Hello World API

Course 2 Hello World application backend.

Steps

  • Add .gitignore for Python and Terraform (gitignore.io)

  • Setup Makefile with env and install

  • Create requirements file and installed

  • Create Django project django-admin.py startproject hello_world_api

  • Add *.sqlite3 to .gitignore

  • Create Dockerfile

  • Add install-dev to Makefile to install docker-compose

  • Create docker-compose.yml file

  • Run docker-compose up --build

  • Add rest_framework to settings.py

  • Create views.py in hello_world_api/ with hello world view

  • Add /api/hello_world url

  • Add Cors Headers

  • Create ECS Cluster

  • Create EC2 containers

  • Create SGs and Instance Profile

  • Create ECS Service

  • Create ECS Task

  • Create build and push script

First Time Deployment

Create S3 Bucket:

aws s3 mb --region us-east-1 s3://c2-state-files

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published