Ana Beatriz Marques, 2018274233
Marta Santos, 2019220054
Nour Dorgham, 2022181281
17,1
- create a django project in the virtual env
- copy the settings files to ur django project
- get the requirements from settings/requirements.txt
notepad C:\Users\Ana\.aws\credentials #update with aws credentials in website
- terminal 1
cd frontend
npm run build
- terminal 2
cd C:\Users\Ana\Desktop\ES\project_2\ebdjango # your path to the project
%HOMEPATH%\eb-virt\Scripts\activate
python manage.py runserver
- terminal 3 whenever a new state machine has started, run the script to end it
cd C:\Users\Ana\Desktop\ES\project_2\ebdjango\project # your path to the project folder
python medications.py
pip install -r requirements.txt
npm i
python manage.py makemigrations
python manage.py migrate
- comment the default path in urls.py (this redirects all not listed urls to 404 error but also the admin)
#re_path(r'^.*$', views.index, name="not_found"),
- run server locally
python manage.py runserver
- open on http://127.0.0.1:8000/admin (default django admin)
pip freeze > requirements.txt
- with vir env
python manage.py collectstatic
eb deploy