ShoppingList and Cart basic application in Django / React
This is a simple first pass at a shopping list (from given json resource) which allows adding single or special deal amounts to a checkout, built as a seperate django app for interchangeability of each part.
- setup files in a directory
- establish virtual environment from parent folder recommended
- in \reactEx project folder:
- npm install (install npm packages from package.json)
- pip install -r requirements.txt (install pypi packages)
- replace django.js package url with file contents 'djangojs.replacement.urls.py'
- python manage.py migrate
- python mange.py createsuperuser
- add host url to ALLOWED_HOSTS
- python manage.py runserver
If you modify js, jsx or css, re-build with webpack, default config file in reactEx folder. (shortcut is npm run build)
- Really this is just an experiment for me - but if you want to take it further or use it for whatever purpose, go for it: Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request, and I'll see about bringing it back in :D
Built base app in 4 hours (plus some pre-research, planning) Added total to Cart app and some css highlights to shopping List app after initial testing
Don Bloomfield
MIT licence for general use (credit), contact me for anything else you need.