Project created for NodeJS Super Guide
Live Demo
·
Report Bug
Table of Contents
Make a Node application that helps report polluted places nearby.
Requirements:
-
You will be able to provide the application with a graphical interface, or you will be able to implement only the API, this at your complete discretion;
-
In order to use it, you will need to make available the upload of photos certifying the environmental pollution taking place, and the address/location of the same;
-
The application will then have to provide an endpoint to display the list of all the reported places.
- Clone the repo
git clone https://github.com/matteo-minerva/nodejs-pollution-report
- Setup a DB (eg. using XAMPP or w/e).
- Import the project table from the migration file
nodejs_matteo_minerva.sql
. - Create a
.env
file and fill it like so
DB_HOST=YOUR_HOST
DB_USER=YOUR_USERNAME
DB_PASSWORD=YOUR_PASSWORD
DB_NAME=YOUR_DB_NAME
DB_PORT=YOUR_DB_PORT
You can also declare a port to run Node on, if you really need to
PORT=YOUR_PORT
- Install all the missing dependecies running
npm install
- Now you should be able to run the server with
npm start
You can access the form to submit data by visiting
http://localhost:3000/
The server has only one endpoint that allows the user to see the full list of reports
http://localhost:3000/api/all
Matteo Minerva - m.minerva@outlook.it
start2impact personal page: https://talent.start2impact.it/profile/matteo-minerva