Technologies | How to run | Project | How to contribute | License
This project was developed with the following techs:
Ecoleta is a marketplace to help people to find garbage collection points efficiently.
To install dependencies
$ yarn
or
$ npm install
To run the migrations
$ yarn knex migrate:latest
or
$npm knex migrate:latest
server/src/controllers/ItemsController.ts
const serializedItems = items.map(item => {
return {
id: item.id,
title: item.title ,
image_url: `http://YOUR_IP_ADDRESS:3333/uploads/${item.image}`,
};
});
server/src/controllers/PointsController.ts
const serializedPoints = points.map(point => {
return {
id: point.id,
title: point.title ,
image_url: `http://YOUR_IP_ADDRES:3333/uploads/${point.image}`,
};
});
const serializedPoint = {
...point,
image_url: `http://YOUR_IP_ADDRES:3333/uploads/${point.image}`,
};
To start the server
$ yarn dev
or
$ npm dev
To install dependencies
$ yarn
or
$ npm install
To start the server
$ yarn start
or
$ npm start
mobile/src/services/api.js
import axios from 'axios';
const api = axios.create({
baseURL: 'http://YOUR_IP_ADDRESS:3333',
});
export default api;
To install dependencies
$ yarn
or
$ npm install
To start the server
$ yarn start
or
$ npm start
- Fork this repo;
- Create a branch for your new feature:
git checkout -b my-feature
; - Commit your changes:
git commit -m 'feat: My brand new feature'
; - Push it to your branch:
git push origin my-feature
.
After merge of your pull request, you can delete your branch.
This project is under MIT license. See the file LICENSE for details.