vadushkin / django-react-template

Template for connecting django to react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Small template for connecting django to react

Installation

Python => 3.11

Node => 18.4.0

Start

Create file backend/.env or delete .example in the backend/.env.example file

Fill in the data in the file .env

SECRET_KEY=KEY
DEBUG='1 - True, 0 - False'
ALLOWED_HOSTS=localhost,127.0.0.1,etc...

Run

docker-compose up

Ports here

docker-compose.yaml

version: "3"

services:
  backend:
    build: backend
    env_file:
      - backend/.env
    ports:
      - "8000:8000"

  frontend:
    build: frontend
    ports:
      - "3001:3000"

Standard ports

About

Template for connecting django to react


Languages

Language:Python 79.9%Language:JavaScript 9.9%Language:HTML 5.1%Language:Dockerfile 4.4%Language:Shell 0.6%