Skip to content

Abel-Huang/walle-server

Repository files navigation

WalleBackEnd

System Request

nodejs && npm

Step

  1. npm install
  2. node walle.js

File Tree Introduction

/Test : test folder
/backup : db backup files
app.js : smart car upload data, via json
calculate.js : use for generate db
data : some raw data(useless)
easymogo : connect to mongodb
http.js : api
utils.js : some useful tool function
walle.js : core js

What you need know

Walle.js:

  1. getlocationAPI
  2. generateDBs
  3. carControl getlocationAPI:

url: /ibeacon or /wifi method: post data:

  1. ibeacon
{
    "uuid_1":"rssi_1",
    "uuid_2":"rssi_2",
    "uuid_3":"rssi_3",
    "..."
    "uuid_n":"rssi_n"
}
  1. wifi
{
    "mac_1":"rssi_1",
    "mac_2":"rssi_2",
    "mac_3":"rssi_3",
    "..."
    "mac_n":"rssi_n"
}

generateDBs(generate the ibeaconDB&&wifiDB)

this will regenerate some dbs, pay attention to use it

url:/ mothod: post data:

{
    "task":"g"
}

carControl

url:/ctr mothod: post data:

{
    "message":"control_content"
}

control_content

About

🚗A backend for intelligence car

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published