This project core is powered by React
MobX
and Express
.
Web view is implemented with Material UI
.
MongoDB
git clone https://github.com/mexeniz/find-bundit
cd find-bundit
npm install
edit your own account and database url in config.js
sudo mongod
npm start
then insert that account by call
curl localhost:3000/api/setup
you can login at http://localhost:3000/login
and push location at http://localhost:3000/locator
POST /api/setup
arguments
- none
return {success: true}
GET /api/myLocation
arguments
- none
return {lat,lng}
POST /api/authenticate
arguments
- username
string
- password
string
return token: if user is valid.
POST /api/setLocation
arguments
- token
string
- lat
string
- lng
string
return status:"OK" if token is valid.
Client must access via https
due to a constraint of Geolocation API