This repository is part of the project for the module Mobile and Cyber-Physical Systems at University of Pisa.
Here are stored the API of the cloud server invoked by the edge server.
- NodeJS (with npm)
- Docker
First install nodejs/npm and docker, running docker and:
cd ~ && mkdir MongoStorage
docker volume create mongo-storage
docker run -d -v ~/MongoStorage:/data/db -p 27017-27019:27017-27019 --name mongodb mongo
git clone https://github.com/MCPS-team/cloud_api.git
cd cloud_api/ && npm install && npm start
- rename the .env.example in .env and if you want edit MongoDB configurations
Frontend APIs:
[GET] /dashboard
Show the home page with some statistics[GET] /map
Show the map of the detected potholes[GET] /about
Credits to the authors
Backend APIs:
[POST] /api/upload
Upload detected potholes data from edge server
Here's the wonderful team working hard for this project:
- Matteo Barato
- Davide Barasti
- Luca Roveroni
- Gianmarco Santi
- 0.1
- Initial Release
This project is licensed under the MIT License - see the LICENSE file for details