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 16Then run
npm startInstall
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.txtand add credentials in file. Django secret key can be generated by running
./shell/scripts/generate-django-secret-key.shThen run
./install.shInstall 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.txtand add credentials in file Django secret key can be generated by running
./shell/scripts/generate-django-secret-key.shThen 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