Implementation of ahernp.com using React and Django
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
django
docker
react
.gitignore
README.md
docker-compose.yml
dot_env
pytest.ini
setup_app.py

README.md

ahernp.com

Implementation of website ahernp.com using Django 2, Python 3 & React with Django REST framework.

Running inside docker containers.

Development Environment

Setup

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:

  1. sudo docker-compose up
  2. sudo docker-compose exec react npm run build
  3. python3 setup_app.py

Usage

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