https://github.com/sumitarora/awesome-ai
Awesome AI Demo Application leveraging Apache Spark, Play and Reactive Mongo
https://github.com/sumitarora/awesome-ai
List: awesome-ai
apache-spark machine-learning mongodb ngconf2017 play-framework playframework reactivemongo spark
Last synced: about 1 month ago
JSON representation
Awesome AI Demo Application leveraging Apache Spark, Play and Reactive Mongo
- Host: GitHub
- URL: https://github.com/sumitarora/awesome-ai
- Owner: sumitarora
- License: mit
- Created: 2017-04-05T04:36:18.000Z (about 9 years ago)
- Default Branch: master-git
- Last Pushed: 2017-04-05T05:38:28.000Z (about 9 years ago)
- Last Synced: 2024-04-29T21:19:40.624Z (about 2 years ago)
- Topics: apache-spark, machine-learning, mongodb, ngconf2017, play-framework, playframework, reactivemongo, spark
- Language: Scala
- Homepage: https://awesome-ai.herokuapp.com
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Awesome AI
Example application showing CTA prediction based on historical data using play 2.5 and reactive mongo
## Configure MongoDB
Just change it in application.conf
```
mongodb.uri = "mongodb://localhost/ngconf"
```
## Run Application
```
sbt run
```
## Endpoints
| Type | Endpoint | Payload | Description |
| ------------- |-------------| -----| -----|
|GET|/events|{ "hitType": "pageview", "page": "/", "sessionId": "3616391b-63cd-4a8b-83c1-c3cca33d7757", "ip": "7.9.12.2"}|Get recent 30 events list|
|POST|/events|--|Send an event and get the prediction|
|GET|/ip/:ip|127.0.0.1|Get IP details of IP passed|
|GET|/generate|--|Generate dummy data for testing|
## Notes
- Prediction algorithm is generated using [Apache Spark](http://spark.apache.org/)
- Apache Spark code for Machine Learning is in `apache-spark.scala`
- `apache-spark.scala` should be run in Apache Spark Shell