Skip to content

ccho-0508/simple-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Site: React + Django + SQLite

Description

  • Simple 'Note' App run with two containers:
    • Frontend app w/ Reacct
    • API and SQLite DB w/ Django

How to Run with Docker Containers

  • Make sure docker desktop is installed for non-Linux users!!! (Creates a linux vm so you can run containers).

  • You need to build the images first with: docker-compose build (run where docker-compose.yaml is located).

    • Run the build commmand whenever you make changes to the code .
  • Start the site with:

    • docker-compose up (run where docker-compose.yaml is located)
    • Both containers (backend and frontend) will run
    • Go to localhost:3000
  • ALWAYS remember to stop and remove containers with docker-compose down command.

Add secret key for Django backend

  • Create a .env file at /backend and add the key

Folders:

frontend

  • React app
  • Run without docker: npm start

backend

  • Django api + SQLite database
  • Run without docker: python3 manage.py runserver

tutorial-env

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published