Skip to content

matteo-minerva/nodejs-pollution-report

Repository files navigation

Issues LinkedIn


Screenshot

Pollution Reporter

Project created for NodeJS Super Guide

Live Demo · Report Bug

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contact
  5. Acknowledgements

About The Project

Website Screenshot

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.

Built With

Getting Started

  1. Clone the repo
git clone https://github.com/matteo-minerva/nodejs-pollution-report
  1. Setup a DB (eg. using XAMPP or w/e).
  2. Import the project table from the migration file nodejs_matteo_minerva.sql.
  3. 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
  1. Install all the missing dependecies running
npm install
  1. Now you should be able to run the server with
npm start

Usage

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

Contact

Matteo Minerva - m.minerva@outlook.it

start2impact personal page: https://talent.start2impact.it/profile/matteo-minerva

Acknowledgements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published