Coder Social home page Coder Social logo

mannhuynh / django-react-typescript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcelovicentegc/django-react-typescript

1.0 1.0 0.0 875 KB

A boilerplate with Django on the backend and React on the frontend, and much more!

License: MIT License

Python 11.91% JavaScript 1.83% TypeScript 78.29% HTML 4.83% Shell 0.06% Dockerfile 0.35% DIGITAL Command Language 0.18% CSS 2.55%

django-react-typescript's Introduction

License: MIT Build and Test app

django-react-typescript logo

Your favorite React-Django boilerplate.


About

This is a fully-featured Django-React boilerplate built for great development experience and easy deployment.

Global

  • Commit lint rules

Frontend

Other features Status
SSR ready In progress
Service workers ✔️
Gzip static file gen ✔️
Cache control ✔️
Code split and lazy loading ✔️
Google Analytics ready ✔️

Backend

Other features Status
Token authentication ✔️
SMTP ready ✔️

Infrastructure

Other features Status
NGINX config file ✔️
CI/CD to Digital Ocean (the hml and main branches will trigger the deployment actions) ✔️

Integrations

Development directions

  1. Clone this repo: git clone https://github.com/marcelovicentegc/django-react-typescript.git
  2. Create a virtual environment: python -m venv venv
  3. Activate it ☝️: source venv/bin/activate or venv\Scripts\activate if you're on a Windows
  4. Install dependencies: npm i && pip install -r requirements.txt && cd frontend && npm i
  5. Setup the project .env file by taking as example the .env.example on the root folder (refer to configuration for more details)
  6. Setup the frontend app's frontend/.env file by taking as example the frontend/.env.example file (refer to configuration for more details)
  7. Start the application: npm start

Configuration

You should configure these variables on a .env file on the root folder for the global configuration and a .env file for the frontend configuration when developing, but for production, set these variables as secrets.

Global

Environment variable Default
CDN_NAME -
CDN_API_KEY -
CDN_API_SECRET -
DB_HOST -
DB_NAME -
DB_USER -
DB_PASSWORD -
DB_PORT -
SMTP_HOST_USER -
SMTP_HOST_PASSWORD -
TEST -
TWILIO_ACCOUNT_SID -
TWILIO_AUTH_TOKEN -
TWILIO_WPP_NUMBER -

Frontend

Environment variable Default
NODE_ENV development
AUTH_TOKEN -
GTAG_ID -

Basic architecture

Architecture

django-react-typescript's People

Contributors

marcelovicentegc avatar dependabot[bot] avatar

Stargazers

Vuong Huynh avatar

Watchers

James Cloos 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.