This is a simple first pass at a tiered list (nested queries) which allows adding Jobs, Shifts per Job, Positions/Roles per Shift and then opening them up (smartphone/email notifications eventually) for Staff to verify Availability then Admin Staff auto-fill or chose which staff to fill each slot (not implemented), built as a few seperate django apps 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
- npm run build
- 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) For testing, /forceadmin/ will load admin interface and /forceuser/##/ will load as user (not implemented Apr 2017 - Mock UI for both admin + users coming)
- At this point 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
Apr 2017: Added second app (Responses) for staff to propose Availability/ Unavailable per Role.
Apr 2017: Build basic 3 tier Job/Shift/Role functionality
Don Bloomfield
MIT licence for general use (credit), contact me for anything else you need.