This project was created using TypeScript, SOLID principles, and Design Patterns.
The focus of this project is to show how to implement the SOLID principles and Design Patterns (Dependency Injection and Factory Method).
- SOLID
- Dependecy Injection
- Factory Method
- CRUD User
- Data Validation using Zod
- Tests
- npm install (to install node modules)
- npm run dev (to start the server)
- npm run build (to build the project)
- npm run test (to run the tests)
Here are the routes that have already been created:
/users |
|||
---|---|---|---|
Method | Route | Description | |
POST | /users |
create a new user | |
GET | /users/:id |
get one user by id | |
GET | /users |
get all users | |
PUT | /users/:id |
update one user | |
PUT | /users/update-password/:id |
update user password | |
DELETE | /users/:id |
delete one user by id |