Skip to content

Fullstack APP created at Next Level Week using Typescript, NodeJS, Sequelize-Typescript, ReactJS and React Native with Expo

Notifications You must be signed in to change notification settings

arcmena/ecoleta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♻ Ecoleta

A better way to make the world a better place! In progress

GitHub repo size GitHub top language GitHub language count

What is Ecoleta?

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.

Presentation

Getting started

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.

Specific database configuration

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.

Backend

cd backend

#To install the dependencies
yarn install

#To start
yarn start

Note: The server will start running on http://localhost:3300

Frontend

cd frontend

#To install the dependencies
yarn install

#To start
yarn start

Note: The server will start running on http://localhost:3000

Author

About

Fullstack APP created at Next Level Week using Typescript, NodeJS, Sequelize-Typescript, ReactJS and React Native with Expo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published