Skip to content

AlessioChen/Node-js-pollution-reporter

Repository files navigation

Pollution Reporter

Project made for star2Impact nodejs super guide.

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.

Build with

  • NodeJs
  • ExpressJs

Website Screenshot

Getting Started

  1. Clone the repo
  2. Setup a MySQL DB
  3. Import the project migration file pollution_report.sql
  4. Create a .env file and fill it with your DB data
DB_HOST=YOUR_HOST
DB_USER=YOUR_USERNAME
DB_PASSWORD=YOUR_PASSWORD
DB_NAME=YOUR_DB_NAME`
RUNNING_PORT=RUNNING_PORT
  1. Install project dependencies
npm install
  1. Start the server
npm start

Usage

To access the submission form go to the following URL

http://localhost:3000/pollution

I created only one endpoint where the user can see all the reports:

http://localhost:3000/pollution/all

About

Pollution report -> start2impact Nodejs project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published