Coder Social home page Coder Social logo

codingforentrepreneurs / serverless-django Goto Github PK

View Code? Open in Web Editor NEW
43.0 10.0 30.0 30 KB

Learn to build and deploy a Serverless Django application to Google Cloud Run with Cloud SQL, Cloud Build, & Docker.

License: MIT License

Python 77.93% PowerShell 5.95% Shell 13.35% Dockerfile 2.77%
django gcloud cloud-run cloud-build docker cloud-sql cloud-sql-proxy python

serverless-django's Introduction

Serverless Django Logo

Serverless Django

Learn to build and deploy a Serverless Django application to Google Cloud Run with Cloud SQL, Cloud Build, & Docker.

Requirements

Recommended

Reference

To use this code

1. Clone

git clone https://github.com/codingforentrepreneurs/Serverless-Django .

2. Create Virtual Environment

cd supercharged
python3.8 -m venv .

Use Any version of Python >= 3.6

3. Activate virtual environment Mac/Linux

source bin/activate

Windows:

.\Scripts\activate

If using pipenv, run pipenv shell && pipenv install

4. Install requirements

pip install -r requirements.txt

5. Run locally Mac/Linux

chmod +x ./scripts/local.sh
./scripts/local.sh

Windows

.\scripts\local.ps1

Lesson Code Reference

3 - Virtual Environment with Pipenv & VSCode Workspace

4 - Staging Django for Production

5 - Home Page View including Settings Variables

6 - WSGI with Gurnicorn or Waitress

8 - Install the Cloud SQL Proxy

9 - Database Service Account directory holder

10 - Run Cloud SQL Proxy with Service Account

11 - Connect Django & Proxy Database

12 - Dockerfile, Docker Build, & Docker Run

13 - Docker Build & Push To GCloud Container Registry

14 - Google Cloud Build

15 - Deploy to Cloud Run

16 - Make Changes, Build, & Deploy

17 - Production Database on Cloud Run

18 - Thank you and next steps

serverless-django's People

Contributors

codingforentrepreneurs avatar teamcfe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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