-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
23 lines (16 loc) · 851 Bytes
/
README
File metadata and controls
23 lines (16 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
STONKS
Clone the repository and navigate into the root directory.
Run python setup.py install.
Some dependencies may or may not install, i.e. numpy, flask, and pyvis.
Install these with pip install and the respecitve name.
This project also requires sqlite3 to be installed to initalize the database.
Navigate to the stonks_app directory, ex:
C:\Users\erob7\Documents\stonks\stonks_app
Run following commands to create database file from schema.
sqlite3 stonks.db < schema.sql // OSX and Linux
sqlite3 -init schema.sql stonks.db // Powershell
On some cases you have to specify the exact path to the exe:
C:\sqlite\sqlite3.exe stonks.db < schema.sql
Run api.py from the root directory to populate the database from the csv file:
.\stonks_app\api.py
If everything worked, the database should be populated and now run wsgi.py to start the server.