GitHunt
MI

mickelindahl/django-react-postgres

Django webserver with react as frontend and postgres as database

Django react postgres

Django webserver with react as frontend and postgres as database

Run

Enable node 16. E.g. if you have nvm installed by running

nvm use 16

Then run

npm start

Install

Creates two containers one with the django server and one with the
postgres database. Intended to be used on a linux production servers running
docker containers

Create credentials.txt

cp sample.credentials.txt credentials.txt

and add credentials in file. Django secret key can be generated by running

./shell/scripts/generate-django-secret-key.sh

Then run

./install.sh

Install locally

Installs the django server locally and the postgres db in a docker container.
Intended to be used for local development

Create credentials-local.txt

cp sample.credentials.txt credentials-local.txt

and add credentials in file Django secret key can be generated by running

./shell/scripts/generate-django-secret-key.sh

Then run

. ./install-local.sh {linux | mac}

Django PyCharm

To setup support for Django in PyCharm go to

File | Settings | Languages & Frameworks | Django for Windows and Linux

And fill in paths

Languages

TypeScript30.9%Shell28.6%Python23.5%JavaScript9.5%Dockerfile3.6%HTML3.4%SCSS0.5%

Contributors

GNU General Public License v3.0
Created April 19, 2022
Updated May 2, 2022