Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

(Live Link) (2022) Django 4 with docker support. See the readme misc for more python apps.

License

Notifications You must be signed in to change notification settings

kkamara/python-reactjs-boilerplate

Repository files navigation

python-reactjs-boilerplate Tests Pipeline

With docker support.

Installation

cp .env.example .env
pip install virtualenv && \
  virtualenv env && \
  source env/bin/activate
python3 manage.py migrate
Add testing seed data

Example:

Load data auth_user.json into database.

python manage.py loaddata app/fixtures/auth_user

Usage

# alias py="python3"
py manage.py runserver 3000
# http://localhost:3000

Using Docker?

alias compose='docker-compose -f local.yml'
compose build
compose up
# http://localhost:3000

iPython Django Shell

  py manage.py shell -i ipython

API

  py manage.py show_urls

View the api collection here.

Admin

Admin creds are set in ./compose/local/django/start

export DJANGO_SUPERUSER_PASSWORD=secret

py manage.py createsuperuser \
  --username admin_user \
  --email admin@django-app.com \
  --no-input

Cache react app & view templates

py manage.py collectstatic

Mail Server

docker-mailhog.png

Mail environment credentials are at .env.

The mailhog docker image runs at http://localhost:8025.

Misc

See your Python code do web browsing on your screen with GUI.

See python react boilerplate app.

See python docker skeleton.

See python desktop mobile.

See python for finance.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

BSD

About

(Live Link) (2022) Django 4 with docker support. See the readme misc for more python apps.

Topics

Resources

License

Stars

Watchers

Forks

Languages