mexeniz / find-bundit

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • 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.


Production

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

About

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


Languages

Language:JavaScript 100.0%