Skip to content
This repository has been archived by the owner on Aug 11, 2024. 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

(2022) With docker support.

Installation

cp .env.example .env

python3 -m venv .env
source .venv/bin/activate

python3 manage.py migrate

cd frontend
npm i
npm run build
cd ..
python3 manage.py collectstatic
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 PHP Scraper.

See Python ReactJS Boilerplate app.

See PHP ReactJS 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