- Download repo and work on the SHELL from the ChillEdu level,
- Initialize virtual environment in it:
python -m venv env
, - Run that venv:
LLINUX or MACsource env/bin/activate
,
WINDOWS google say\env\Scripts\activate.bat
if it doesnt work do itcd env
cd Scripts
activate
cd ..
cd ..
- Install dependencies:
pip install -r requirements-dev.txt
, - Create a new file such as
.env.example
and chance his name to.env
- Create a new secret key:
python generateSecretKey.py
- Copy it and paste it into
.env
up to SECRET_KEY
e.g.SECRET_KEY=n-9#+mf&sziujs^g1!+liv5gn@%0*)7dp)gtm^16eqyl+bvjlr
- (optional) Change database settings in settings.py if you want to use different (non-sqlite) db backend,
- Make migrations:
python manage.py makemigrations
, - Migrate database:
python manage.py migrate
, - Create admin:
python manage.py createsuperuser
, - To run dev server:
python manage.py runserver
If you installed new pip dependency you need to allow others to know about it. To do so it is best to save all requirements
in one file, which in this case in named requirements.txt
. You can do this by typing following command:
pip freeze > requirements.txt
/admin
--> login to superadmin panel
/api/login
--> POST request about login
/api/children/registration
--> POST request about children registration
/api/children/<id>/
--> GET request about children detail
/api/addcash/<id>/
--> Add cash to children by id
/api/myadmin/<id>/
--> GET request about admin detail
and a lot of more list
The app is hosted on Heroku
- Superadmin credentials login:
admin
password:admin
- The app falls asleep after 30 minutes of inactivity.
- The app wakes up for 10 seconds.