-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding instructions to run the project
- Loading branch information
1 parent
a0171f2
commit 4c38341
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# How do I get this running? | ||
|
||
## Folder structure | ||
|
||
![](https://github.com/unnati-xyz/fifthel-2016-workshop/blob/master/proj-structure.png) | ||
|
||
### data | ||
This folder contains all the csv files required to run the project | ||
|
||
### logs | ||
This folder contains the daily logs created by the application | ||
|
||
### luigi_tasks | ||
This folder contains the luigi tasks to run. These files internally uses the modules in `poget` | ||
|
||
### poget | ||
This is the base application folder which has multiple modules | ||
|
||
* `analytics/data_load` | ||
|
||
This module has all the files to load data in csv to postgres db | ||
|
||
* `analytics/ml` | ||
|
||
This module has all the files related to spark machine learning | ||
|
||
* `api` | ||
|
||
This contains the flask application & the endpoints | ||
|
||
* `utils` | ||
|
||
This contains all the utilities used in the application | ||
|
||
## Order of execution to see the demo | ||
|
||
* Load data from csv to postgres DB | ||
|
||
```luigi --module luigi_tasks.load_trip_task LoadTripTask``` | ||
|
||
* Run the Spark ML model | ||
|
||
```luigi --module luigi_tasks.terminal_traffic_task TerminalTrafficTrainTask``` | ||
|
||
* Run the flask server | ||
|
||
```python3 runserver.py``` |