File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -4,29 +4,40 @@ Medication sig parser.
44
55## Getting started
66
7+ Instructions for Linux:
8+
9+ Create virutal environment
10+
11+ ```
712python3 -m venv venv
813source venv/bin/activate
9- pip install django
10- pip install djangorestframework
11- pip install "djangorestframework-api-key==2.* "
12- pip install django-cors-headers
13- pip install djoser
14+ ```
15+
16+ Install dependencies
17+
18+ ```
19+ pip install -r requirements.txt
1420sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
15- pip install mysqlclient
21+ ```
1622
1723
1824## Initialize the database
1925
2026How to initially setup MySQL: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04
27+
2128Info on MySQLClient: https://pypi.org/project/mysqlclient/
29+
2230Gunicorn/Nginx: https://realpython.com/django-nginx-gunicorn/#replacing-wsgiserver-with-gunicorn
2331
32+ ```
2433sudo mysql
2534ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword';
2635GRANT ALL PRIVILEGES ON parserx.* TO 'parserx'@'localhost' WITH GRANT OPTION;
36+ ```
2737
2838Terminal
2939
40+ ```
3041mysql -u parserx -p
3142<enter password>
3243drop database parserx;
@@ -39,6 +50,7 @@ python manage.py migrate
3950python manage.py createsuperuser
4051<follow createsuperuser prompts>
4152python manage.py runserver 0.0.0.0:8000
53+ ```
4254
4355Postman
4456
You can’t perform that action at this time.
0 commit comments