Skip to content

Commit

Permalink
Adding instructions to run the project
Browse files Browse the repository at this point in the history
  • Loading branch information
raghothams authored Aug 4, 2016
1 parent a0171f2 commit 4c38341
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions app.md
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```

0 comments on commit 4c38341

Please sign in to comment.