Implementation of website ahernp.com using Django 2, Python 3 & React with Django REST framework.
Running inside docker containers.
Populate .env
file in this directory with values:
ADMIN_NAME=
ADMIN_EMAIL=
DJANGO_SECRET_KEY=
AHERNP_DATABASE_NAME=
AHERNP_DATABASE_USER=
AHERNP_DATABASE_PASSWORD=
POSTGRES_PASSWORD=
then run:
sudo docker-compose up
sudo docker-compose exec react npm run build
python3 setup_app.py
sudo docker-compose up
Visit http://localhost:3000/ to see output of npm start
React script.
http://localhost runs the most recent production version, created by sudo docker-compose exec react npm run build