This project was build during Next Level Week promoted by Rocketseat
- ♻️ Explore recycling points near you.
- 🌎 Create new recycling points.
- 🔎 Filter recycling points by: City, UF and Items.
- 📫 Get in touch with the recycle point by Whatsapp or Email.
- Git
- Node.js
- Expo CLI
First check if you have all the requirements above, then clone this repository:
-
Using HTTP protocol:
git clone https://github.com/Yuziem14/ecoleta.git
-
Using SSH protocol:
git clone [email protected]:Yuziem14/ecoleta.git
Obs: Only clone with SSH if you already have a safe SSH key configured.
-
Config the server directory, to run your backend
Go to the server folder usingcd server
, then:-
In order to install dependencies, run:
npm install
-
In order to config your environment variables, run:
cp .env.example .env
and setup the HOST and PORT in the .env file -
In order to setup the database, run:
npm run knex:migrate
-
In order to seed the database, run:
npm run knex:seed
-
Finally, run your server using:
npm run dev
-
-
Config the web directory, to run your fronted
Run the server and go to the web folder usingcd web
, then:-
In order to install dependencies, run:
npm install
-
In order to config your environment variables, run:
cp .env.example .env
and setup your API URL in the .env file. -
Finally, run your app using:
npm run start
-
-
Config the mobile directory, to run your mobile app
Run the server and go to the mobile folder usingcd mobile
, then:-
In order to install dependencies, run:
npm install
-
In order to config your environment variables, run:
cp src/config/env.example src/config/env.ts
and setup your API URL in the env.ts file. -
Finally, run your app using:
expo start
-
Obs: If you want, use yarn instead of npm.
This project was build with:
Read the Contribute Guidelines.
Read the License for this project.
Made with 💚 by Yuri Ziemba.