├── .env ├── .gitignore ├── .sequelizerc ├── README.md ├── config └── sequelize-cli.js ├── package.json ├── src ├── controllers │ ├── customers-controller.ts │ └── restaurants-controller.ts ├── database │ ├── connect.ts │ ├── index.ts │ ├── migrations │ │ ├── 20220601233650-create-customers-table.js │ │ ├── 20220601233657-create-restaurants-table.js │ │ └── 20220601233703-create-reviews-table.js │ ├── models │ │ ├── customer.ts │ │ ├── restaurant.ts │ │ └── review.ts │ └── seeders │ │ └── 20220602004742-seed-customers-table.js ├── routes.ts ├── server.ts └── services │ ├── customer-service.ts │ ├── restaurant-service.ts │ └── review-service.ts └── tsconfig.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /.sequelizerc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/.sequelizerc -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/README.md -------------------------------------------------------------------------------- /config/sequelize-cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/config/sequelize-cli.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/package.json -------------------------------------------------------------------------------- /src/controllers/customers-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/controllers/customers-controller.ts -------------------------------------------------------------------------------- /src/controllers/restaurants-controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/controllers/restaurants-controller.ts -------------------------------------------------------------------------------- /src/database/connect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/connect.ts -------------------------------------------------------------------------------- /src/database/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/index.ts -------------------------------------------------------------------------------- /src/database/migrations/20220601233650-create-customers-table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/migrations/20220601233650-create-customers-table.js -------------------------------------------------------------------------------- /src/database/migrations/20220601233657-create-restaurants-table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/migrations/20220601233657-create-restaurants-table.js -------------------------------------------------------------------------------- /src/database/migrations/20220601233703-create-reviews-table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/migrations/20220601233703-create-reviews-table.js -------------------------------------------------------------------------------- /src/database/models/customer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/models/customer.ts -------------------------------------------------------------------------------- /src/database/models/restaurant.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/models/restaurant.ts -------------------------------------------------------------------------------- /src/database/models/review.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/models/review.ts -------------------------------------------------------------------------------- /src/database/seeders/20220602004742-seed-customers-table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/database/seeders/20220602004742-seed-customers-table.js -------------------------------------------------------------------------------- /src/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/routes.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/services/customer-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/services/customer-service.ts -------------------------------------------------------------------------------- /src/services/restaurant-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/services/restaurant-service.ts -------------------------------------------------------------------------------- /src/services/review-service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/src/services/review-service.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OneBitCodeBlog/restaurant-reviews-api/HEAD/tsconfig.json --------------------------------------------------------------------------------