/es

Primary LanguageCSS

ES project

Pharmacy with AWS Services

Ana Beatriz Marques, 2018274233
Marta Santos, 2019220054
Nour Dorgham, 2022181281

Final Grade

17,1

Demo

Setup Django

  • create a django project in the virtual env
  • copy the settings files to ur django project
  • get the requirements from settings/requirements.txt

Setup for AWS

notepad C:\Users\Ana\.aws\credentials #update with aws credentials in website 

Start Code

  • 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

Import Errors / Missing

pip install -r requirements.txt
npm i

Change in db

python manage.py makemigrations
python manage.py migrate

Add to db

  • 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

Change in imports

pip freeze > requirements.txt

Update WebServer

  • with vir env
python manage.py collectstatic
eb deploy