mexeniz / find-bundit

Get Graduates' Location and Take a Photo with Them!!
2 stars 1 forks source link

Find-bundit

Get Graduates' Location and Take a Photo with Them!!

This project core is powered by React MobX and Express. Web view is implemented with Material UI.

Prerequisites

MongoDB

Installation

git clone https://github.com/mexeniz/find-bundit
cd find-bundit
npm install

Test

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

Backend API

POST /api/setup

arguments

return {success: true}


GET /api/myLocation

arguments

return {lat,lng}


POST /api/authenticate

arguments

return token: if user is valid.


POST /api/setLocation

arguments

return status:"OK" if token is valid.


Production

Client must access via https due to a constraint of Geolocation API