Skip to content

Commit a9f0eb1

Browse files
authored
Update README.md
1 parent c22676e commit a9f0eb1

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff 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+
```
712
python3 -m venv venv
813
source 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
1420
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
15-
pip install mysqlclient
21+
```
1622

1723

1824
## Initialize the database
1925

2026
How to initially setup MySQL: https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04
27+
2128
Info on MySQLClient: https://pypi.org/project/mysqlclient/
29+
2230
Gunicorn/Nginx: https://realpython.com/django-nginx-gunicorn/#replacing-wsgiserver-with-gunicorn
2331

32+
```
2433
sudo mysql
2534
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'mynewpassword';
2635
GRANT ALL PRIVILEGES ON parserx.* TO 'parserx'@'localhost' WITH GRANT OPTION;
36+
```
2737

2838
Terminal
2939

40+
```
3041
mysql -u parserx -p
3142
<enter password>
3243
drop database parserx;
@@ -39,6 +50,7 @@ python manage.py migrate
3950
python manage.py createsuperuser
4051
<follow createsuperuser prompts>
4152
python manage.py runserver 0.0.0.0:8000
53+
```
4254

4355
Postman
4456

0 commit comments

Comments
 (0)