Git Product home page Git Product logo

django-test-app's Introduction

Django-React Test Application

This repository demonstrates various methods of deploying a Django-React application on Amazon Web Services (AWS). The deployment methods include the use of:

  • Shell Scripts
  • Ansible playbooks
  • Cloudformation templates

Basic Setup

The application consists of a React frontend, a Django backend and a Postgresql database. UWSGI is used as the interface between the Django backend and an Nginx webserver. To this end appropriate configuration files for the two tools are to be found in backend/django-test-app.ini and django-test-app.conf respectively.

The simplest deployment makes use of a single EC2 instance in which the source code is installed along with all the application dependencies. The scripts/setup.sh file contains all the necessary instructions for this set-up. Executing the script from within a running Ubuntu EC2 instance is all that is required.

basic-setup

Highly Available and Scalable Setup

For a highly available deployment we make use of a multi-AZ autoscaling group behind and Elastic Load Balancer. To set-up everything including the VPC, subnets, route-tables etc., a CloudFormation template (django-test-app-template) is used.

All the software for the application along with the necessary EC2 configuration is done using an Ansible playbook (setup.yml). The Systems Manager parameter store is used to store the database credentials required when creating as well as accessing the RDS database.

django-test-app's People

Contributors

lusengeri avatar

Watchers

 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.