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
- Clone the repo
- Setup a MySQL DB
- Import the project migration file
pollution_report.sql - Create a
.envfile 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
- Install project dependencies
npm install- Start the server
npm startTo access the submission form go to the following URL
http://localhost:3000/pollutionI created only one endpoint where the user can see all the reports:
http://localhost:3000/pollution/all