Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 843 Bytes

README.md

File metadata and controls

51 lines (31 loc) · 843 Bytes

aircheck-server

Backend server for aircheck project. It is a fully Scala activator project

###Setup:

  1. Install activator:

Find a way to install Typsafe Activator on your machine, and setup the proper environmental variables, specifically PATH variables.

  1. Install MySQL

Install MySQL on your favorite platform. Use the default password 123456 for root user

  1. Setup MySQL Schema:

Execute the two SQL query in create_schema.sql

###Run the application

Simply: activator ui under this folder

###Android Insertion Convention:

POST /api/insert?csrfToken=CSRFTOKEN

{
  "density":25.0,
  "lng": 179.9999999,
  "lat":123.444444,
  "user_id":1,
  "time":"2016-09-06 20:46:00"
}

###Login Service:

POST /user/login?csrfToken=CSRFTOKEN

username=admin&password=password

###CSRF Token

GET /api/token