├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .gitignore ├── README.md ├── github ├── ecoleta.jpeg └── logo.png ├── ormconfig.json ├── package.json ├── prettier.config.js ├── src ├── config │ └── upload.ts ├── modules │ ├── items │ │ ├── infra │ │ │ ├── http │ │ │ │ ├── controllers │ │ │ │ │ └── ItemsController.ts │ │ │ │ └── routes │ │ │ │ │ └── items.routes.ts │ │ │ └── typeorm │ │ │ │ ├── entities │ │ │ │ └── Item.ts │ │ │ │ ├── repositories │ │ │ │ └── ItemsRepository.ts │ │ │ │ └── seeds │ │ │ │ └── CreateItem.ts │ │ ├── interfaces │ │ │ ├── dtos │ │ │ │ └── ICreateItemDTO.ts │ │ │ └── repositories │ │ │ │ └── IItemsRepository.ts │ │ └── services │ │ │ ├── CreateItemService.ts │ │ │ ├── ListItemsByPointService.ts │ │ │ ├── ListItemsService.ts │ │ │ └── ShowItemByIdService.ts │ └── points │ │ ├── infra │ │ ├── http │ │ │ ├── controllers │ │ │ │ └── PointsController.ts │ │ │ └── routes │ │ │ │ └── points.routes.ts │ │ └── typeorm │ │ │ ├── entities │ │ │ ├── Point.ts │ │ │ └── PointItems.ts │ │ │ └── repositories │ │ │ └── PointsRepository.ts │ │ ├── interfaces │ │ ├── dtos │ │ │ ├── ICreatePointsDTO.ts │ │ │ ├── IFindAllFilteredPointsDTO.ts │ │ │ ├── IFindPointByLatLonDTO.ts │ │ │ └── IUpdatePointDTO.ts │ │ └── repositories │ │ │ └── IPointsRepository.ts │ │ └── services │ │ ├── CreatePointService.ts │ │ ├── ListPointsByItemService.ts │ │ └── ShowPointService.ts ├── shared │ ├── container │ │ └── index.ts │ ├── errors │ │ └── AppError.ts │ └── infra │ │ ├── http │ │ ├── routes │ │ │ └── index.ts │ │ └── server.ts │ │ └── typeorm │ │ ├── index.ts │ │ └── migrations │ │ ├── 1591151844658-CreatePoints.ts │ │ ├── 1591151881677-CreateItems.ts │ │ └── 1591161493314-CreatePointItems.ts └── uploads │ ├── baterias.svg │ ├── eletronicos.svg │ ├── lampadas.svg │ ├── oleo.svg │ ├── organicos.svg │ └── papeis-papelao.svg ├── tmp └── .gitkeep ├── tsconfig.json ├── yarn-error.log └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /*.js 2 | node_modules 3 | dist 4 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/README.md -------------------------------------------------------------------------------- /github/ecoleta.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/github/ecoleta.jpeg -------------------------------------------------------------------------------- /github/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/github/logo.png -------------------------------------------------------------------------------- /ormconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/ormconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/prettier.config.js -------------------------------------------------------------------------------- /src/config/upload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/config/upload.ts -------------------------------------------------------------------------------- /src/modules/items/infra/http/controllers/ItemsController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/infra/http/controllers/ItemsController.ts -------------------------------------------------------------------------------- /src/modules/items/infra/http/routes/items.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/infra/http/routes/items.routes.ts -------------------------------------------------------------------------------- /src/modules/items/infra/typeorm/entities/Item.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/infra/typeorm/entities/Item.ts -------------------------------------------------------------------------------- /src/modules/items/infra/typeorm/repositories/ItemsRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/infra/typeorm/repositories/ItemsRepository.ts -------------------------------------------------------------------------------- /src/modules/items/infra/typeorm/seeds/CreateItem.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/infra/typeorm/seeds/CreateItem.ts -------------------------------------------------------------------------------- /src/modules/items/interfaces/dtos/ICreateItemDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/interfaces/dtos/ICreateItemDTO.ts -------------------------------------------------------------------------------- /src/modules/items/interfaces/repositories/IItemsRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/interfaces/repositories/IItemsRepository.ts -------------------------------------------------------------------------------- /src/modules/items/services/CreateItemService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/services/CreateItemService.ts -------------------------------------------------------------------------------- /src/modules/items/services/ListItemsByPointService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/services/ListItemsByPointService.ts -------------------------------------------------------------------------------- /src/modules/items/services/ListItemsService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/services/ListItemsService.ts -------------------------------------------------------------------------------- /src/modules/items/services/ShowItemByIdService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/items/services/ShowItemByIdService.ts -------------------------------------------------------------------------------- /src/modules/points/infra/http/controllers/PointsController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/infra/http/controllers/PointsController.ts -------------------------------------------------------------------------------- /src/modules/points/infra/http/routes/points.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/infra/http/routes/points.routes.ts -------------------------------------------------------------------------------- /src/modules/points/infra/typeorm/entities/Point.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/infra/typeorm/entities/Point.ts -------------------------------------------------------------------------------- /src/modules/points/infra/typeorm/entities/PointItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/infra/typeorm/entities/PointItems.ts -------------------------------------------------------------------------------- /src/modules/points/infra/typeorm/repositories/PointsRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/infra/typeorm/repositories/PointsRepository.ts -------------------------------------------------------------------------------- /src/modules/points/interfaces/dtos/ICreatePointsDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/interfaces/dtos/ICreatePointsDTO.ts -------------------------------------------------------------------------------- /src/modules/points/interfaces/dtos/IFindAllFilteredPointsDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/interfaces/dtos/IFindAllFilteredPointsDTO.ts -------------------------------------------------------------------------------- /src/modules/points/interfaces/dtos/IFindPointByLatLonDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/interfaces/dtos/IFindPointByLatLonDTO.ts -------------------------------------------------------------------------------- /src/modules/points/interfaces/dtos/IUpdatePointDTO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/interfaces/dtos/IUpdatePointDTO.ts -------------------------------------------------------------------------------- /src/modules/points/interfaces/repositories/IPointsRepository.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/interfaces/repositories/IPointsRepository.ts -------------------------------------------------------------------------------- /src/modules/points/services/CreatePointService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/services/CreatePointService.ts -------------------------------------------------------------------------------- /src/modules/points/services/ListPointsByItemService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/services/ListPointsByItemService.ts -------------------------------------------------------------------------------- /src/modules/points/services/ShowPointService.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/modules/points/services/ShowPointService.ts -------------------------------------------------------------------------------- /src/shared/container/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/container/index.ts -------------------------------------------------------------------------------- /src/shared/errors/AppError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/errors/AppError.ts -------------------------------------------------------------------------------- /src/shared/infra/http/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/infra/http/routes/index.ts -------------------------------------------------------------------------------- /src/shared/infra/http/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/infra/http/server.ts -------------------------------------------------------------------------------- /src/shared/infra/typeorm/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/infra/typeorm/index.ts -------------------------------------------------------------------------------- /src/shared/infra/typeorm/migrations/1591151844658-CreatePoints.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/infra/typeorm/migrations/1591151844658-CreatePoints.ts -------------------------------------------------------------------------------- /src/shared/infra/typeorm/migrations/1591151881677-CreateItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/infra/typeorm/migrations/1591151881677-CreateItems.ts -------------------------------------------------------------------------------- /src/shared/infra/typeorm/migrations/1591161493314-CreatePointItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/shared/infra/typeorm/migrations/1591161493314-CreatePointItems.ts -------------------------------------------------------------------------------- /src/uploads/baterias.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/uploads/baterias.svg -------------------------------------------------------------------------------- /src/uploads/eletronicos.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/uploads/eletronicos.svg -------------------------------------------------------------------------------- /src/uploads/lampadas.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/uploads/lampadas.svg -------------------------------------------------------------------------------- /src/uploads/oleo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/uploads/oleo.svg -------------------------------------------------------------------------------- /src/uploads/organicos.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/uploads/organicos.svg -------------------------------------------------------------------------------- /src/uploads/papeis-papelao.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/src/uploads/papeis-papelao.svg -------------------------------------------------------------------------------- /tmp/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn-error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/yarn-error.log -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fernandogatto/ecoleta-api/HEAD/yarn.lock --------------------------------------------------------------------------------