Web application where you can find places that collect certain types of biodegradable wastes. The website was developed using react and can be accessed at hopeful-bohr-b7bfdd.netlify.app.
The back-end of the application was developed routing with express and a relational database using knex with sqlite3. The application also used multer to save image files and celebrate to validate data and is available at merligus-eco-app.herokuapp.com. The REST API was able to list all the biodegradable wastes (GET /items), create a new point of collection (POST /points), get all the points of collection (GET /points?city=c&uf=uf&items=i1,i2,...), and get a point of collection by the id (GET /points/:id).
To install the project you must:
- Clone the repository
git clone https://github.com/Merligus/eco-app.git cd eco-app/
- Server
cd server/
- Install dependencies
npm install
- Run the server
- As a developer
npm run dev
- As an user
npm run start
- As a developer
- Access the server in your browser at localhost:3000
- Install dependencies
- Web
cd ../web/
- Install dependencies
npm install
- Run the web
npm run start
- Access the web in your browser at localhost:3001
- Install dependencies