auto-shop

所属分类:MongoDB
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-03-17 17:56:24
上 传 者sh-1993
说明:  在该项目中,开发了一个API,使用面向对象编程(OOP)原理和CRUD来管理车辆驾驶。,
(In this project was developed an API using Object Oriented Programming (OOP) principles with CRUD to manage vehicle driving.,)

文件列表:
.DS_Store (6148, 2023-03-17)
.eslintignore (76, 2023-03-17)
.eslintrc.json (3113, 2023-03-17)
Dockerfile (146, 2023-03-17)
car.jpg (93449, 2023-03-17)
docker-compose.yml (2212, 2023-03-17)
jest.config.js (402, 2023-03-17)
jest.d.ts (165, 2023-03-17)
nyc.config.js (261, 2023-03-17)
package-lock.json (611694, 2023-03-17)
package.json (1506, 2023-03-17)
src/ (0, 2023-03-17)
src/Controllers/ (0, 2023-03-17)
src/Controllers/CarController.ts (1116, 2023-03-17)
src/Controllers/MotorcycleController.ts (1270, 2023-03-17)
src/Domains/ (0, 2023-03-17)
src/Domains/Car.ts (415, 2023-03-17)
src/Domains/Motorcycle.ts (467, 2023-03-17)
src/Domains/Vehicle.ts (519, 2023-03-17)
src/Interfaces/ (0, 2023-03-17)
src/Interfaces/ICar.ts (126, 2023-03-17)
src/Interfaces/IMotorcycle.ts (162, 2023-03-17)
src/Interfaces/IVehicle.ts (142, 2023-03-17)
src/Models/ (0, 2023-03-17)
src/Models/AbstractODM.ts (995, 2023-03-17)
src/Models/Connection.ts (284, 2023-03-17)
src/Models/carODM.ts (455, 2023-03-17)
src/Models/motorclyclesODM.ts (680, 2023-03-17)
src/Services/ (0, 2023-03-17)
src/Services/CarService.ts (1286, 2023-03-17)
src/Services/MotorcycleService.ts (1462, 2023-03-17)
src/app.ts (293, 2023-03-17)
src/routes/ (0, 2023-03-17)
... ...

# Auto Shop # ![alt app](https://img.freepik.com/free-vector/car-showroom-center-with-autos-exhibition-inside-automobile-dealership-store-shop-interior-new-modern-vehicles-models-demonstration-sale-trading_575670-1511.jpg?w=1380&t=st=1679075602~exp=1679076202~hmac=0ac7ef04bad98d737667f2e4d203da91b7c607eadcbde295c079ac1f7659945e) ## About ## In this project, Object Oriented Programming (OOP) principles were used to build an API with CRUD to manage vehicle driving. This was done using the MongoDB database through the Mongoose framework. ## Routes ## 1 Car Routes: * POST /cars Responsible for registering the car in db. * GET /cars Responsible for listing all cars. * GET /cars/:id Responsible for listing a specific car. * PUT /cars/:id Responsible for updating a specific car. 2 Motorcycles Routes: * POST /motorcycles Responsible for registering the motorcycles in db. * GET /motorcycles Responsible for listing all motorcycles. * GET /motorcycles/:id Responsible for listing a specific motorcycle. * PUT /motorcycles/:id Responsible for updating a specific motorcycle. ## Skills and Tools ## * Application integration using Docker; * Using environment variables; * Write APIs using TypeScript, Node js. and Express; * Develop the Back-end of the application using the MSC model; * Create routes and apply middlewares; * Use ORM Sequelize to CRUD the database; * Use the Object Oriented Paradigm (OOP); * Use the SOLID principle; * Create unit tests using Jest, Mocha, Chai and Sinon libraries; ## Guidelines to runnig API ## 1. Clone the repository: ```git clone git@github.com:carinacunha/shop-car.git``` 2. Navigate to the root of the repository: ```cd shop-car ``` 3. Install the dependencies: ```npm install ``` 4. Initialize the Docker containers: ```docker-compose up -d``` 5. Run tests: ```npm run test``` ** This project was developed during the Full Stack Web Development course at Trybe**

近期下载者

相关文件


收藏者