A better way to make the world a better place! In progress
Ecoleta is a way to connect people to entities that take care of the collection of specific recyclable residues, like batteries, heavy oils or paper.
The APP was created at Next Level Week #1 hosted by Rocketseat. Originally the backend was made using KnexJS and SQLite, but along the way I decided to change to Sequelize ORM and PostgreSQL for the DB.
This repository contains the Backend API, Frontend APP and Mobile version. You may have to configure Expo, an android or ios emulator.
git clone https://github.com/arcmena/ecoleta.git
Note: You will need to have PostgreSQL installed on your machine.
After installing the dependencies, create a .env.development file in the backend directory with the following structure:
# PostgreSQL Database variables
DB_HOST= # The DB host address. e.g.: localhost
DB_USER= # The DB username. e.g.: postgres
DB_PASSWORD= # The DB passowrd. e.g.: postgres
DB_DATABASE= # The DB name. e.g.: ecoletadb
DB_PORT= # The DB port. e.g.: 5432
After that you should be good to start running the API.
cd backend
#To install the dependencies
yarn install
#To start
yarn start
Note: The server will start running on http://localhost:3300
cd frontend
#To install the dependencies
yarn install
#To start
yarn start
Note: The server will start running on http://localhost:3000
- Marcelo Mena - arcmena