Skip to content

GreenHunan/aircheck-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Backend server for aircheck project.

Resources

License

Stars

0 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors