Skip to content

Project that aims to facilitate communication between organizations that collect materials and waste, and people interested in providing them. Built with NodeJS, ReactJS and ReactNative.

License

Notifications You must be signed in to change notification settings

M-Henrique/Ecoleta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

🔖 Table of contents

📋 About the Project

Recycling has become essential in modern society. With so much pollution going on and importante matters like global warmth, the correct disposal and treatment of the waste we produce is vital to keep the planet in balance.

Ecoleta is a platform that hopes to establish connections between people willing to help the planet, and those who have the resources and objectives to deal with waste.

🔨 Built With

🚀 Getting Started

Ecoleta is NOT a commercial application. The project was developed exclusively with educational intentions and, as such, haven't been published. With that im mind, if you want to run a local instance of the program for testing and curiosity purposes, please follow these steps:

✔️ Prerequisites

All of those must be installed before you try to run the project:

  • NodeJS
  • NPM - Auto installed with NodeJS
  • Expo - Must also be installed in your cellphone

⚙️ Installation

After cloning or downloading the project in your local machine, navigate to mobile\src\services\api.js, server\src\controllers\PointsController.ts and server\src\controllers\ItemsController.ts and change all the baseURL and image_url variables to your respective IP. Once this is done, open the project's folder in your terminal and run the following commands:

# Go to server folder
$ cd server

# Install all necessary dependencies
$ npm install

#Instantiate the local database
$ npx run migrate:lastest --knexfile knefile.ts

# Run the server
$ npm start

The server will start at port :3333. Open another terminal and leave this one open.

# Go to web folder
$ cd web

# Install all necessary dependencies
$ npm install

# Run the application
$ npm start

Wait a moment and the application will open at port :3000. Open another terminal and leave this one open.

# Go to mobile folder
$ cd mobile

# Install all necessary dependencies
$ npm install

# Run the app
$ expo start

Wait a moment and an expo screen will open. Open the Expo app at your cellphone and scan the QR Code now appearing on screen. Leave this terminal open.

💻 Usage

In the web version of the app, you may register new collection points, providing info like location, types of material collected and, of course, ways to contact the responsible directly.

Versão web

In the mobile version, you will be prompted with a filter, asking you to provide the city in which you'll be searching for collection points. Once you fulfill that, select the types of material that you're looking to get rid of, and all the points interested in such materials will be presented on the map. Click on them to see details and contact them directly.

Pontos no mapa

Detalhes do ponto


































ℹ️ License

This project is under the MIT license.

📧 Contact

If you like the project and have the interest in contacting me directly, please send an email to mhenrique.silva408@gmail.com

💜 Acknowledgments

This project was developed with the guidance of Diego Fernandes, CTO at Rocketseat, as product of the "Next Level Week" online event.

About

Project that aims to facilitate communication between organizations that collect materials and waste, and people interested in providing them. Built with NodeJS, ReactJS and ReactNative.

Topics

Resources

License

Stars

Watchers

Forks