Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

eduardofranca1/typescript-api

Open more actions menu

Repository files navigation

TypeScript API

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).

Technologies:

Topics

  • SOLID

Design Patterns

  • Dependecy Injection
  • Factory Method

Features

  • CRUD User
  • Data Validation using Zod
  • Tests

How to run the project

  • 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)

Routes

Here are the routes that have already been created:

Users

/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

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.