- Notifications
You must be signed in to change notification settings - Fork0
🎓 Exit Exam for MVC (Model View and Controller)
License
NotificationsYou must be signed in to change notification settings
PunGrumpy/kmitl-mvc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
- 💪 TypeScript - Safer, more readable, and more maintainable code
- 🐈 NestJS - A progressive Node.js framework for building efficient, reliable, and scalable server-side applications
- 🐶 Prisma ORM - A modern database toolkit for TypeScript & Node.js that is used to interact with the database
- 🐘 PostgreSQL - A powerful, open-source object-relational database system
- 💅 Prettier - An opinionated code formatter
- 🧹 ESLint - A tool for identifying and reporting on patterns found in ECMAScript/JavaScript code
- 🍞 Bun - A fast JavaScript/TypeScript runtime
- 🦢 Swagger - An open-source software framework backed by a large ecosystem of tools that helps developers design, build, document, and consume RESTful web services
- 🔮 Scalars - A API reference to over Swagger UI
This project follows theMVC (Model-View-Controller) design pattern with clear separation of responsibilities:
db/schema.prisma
Defines the data structure for superhero suits, including suit ID, type, and durability level.libs/interfaces/suit-validation.interface.ts
Specifies interfaces for validating each type of suit.libs/validators/suit-durability.validator.ts
Contains the logic to validate the durability of each suit type based on predefined conditions.
src/superhero-suit/superhero-suit.controller.ts
Manages data exchange through API endpoints for handling superhero suit operations.src/superhero-suit/superhero-suit.dto.ts
Specifies the data transfer format for input and output via the API.
src/superhero-suit/superhero-suit.service.ts
Implements the business logic for creating, validating, and repairing superhero suits.src/superhero-suit/superhero-suit.module.ts
Connects and organizes the different components within the superhero suit module.
libs/prisma/prisma.service.ts
Manages the database connections using Prisma.libs/decorators/catch-prisma.decorator.ts
Handles errors that occur during database operations.
db/seed.ts
Generates sample data for superhero suits.
Requirement: At least 50 total suits, with a minimum of 10 suits per suit type.
- Clone this repository
git clone git@github.com:PunGrumpy/kmitl-mvc.git
- Install dependencies
bun install
- Run the development server
bun dev
- Openhttp://localhost:3000 andhttp://localhost:3000/docs with your browser to see the result.
This project is licensed under theMIT License - see theLICENSE file for details.
About
🎓 Exit Exam for MVC (Model View and Controller)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.