Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gustavovalle23/user-microservice-typescript
This is a microservice that represents the users of the application
https://github.com/gustavovalle23/user-microservice-typescript
clean-architecture graphql microservice nestjs nodejs typeorm typescript
Last synced: about 1 month ago
JSON representation
This is a microservice that represents the users of the application
- Host: GitHub
- URL: https://github.com/gustavovalle23/user-microservice-typescript
- Owner: gustavovalle23
- Created: 2022-06-28T21:41:49.000Z (over 2 years ago)
- Default Branch: beta
- Last Pushed: 2024-06-21T06:07:47.000Z (7 months ago)
- Last Synced: 2024-06-21T23:35:38.761Z (7 months ago)
- Topics: clean-architecture, graphql, microservice, nestjs, nodejs, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 739 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User MicroService
> This is a microservice that represents the users of the application## Features and Technologies
> This project uses Node.js v18.14.0, NestJS (with Express), Mongoose, MongoDB and GraphQL- [x] Create user
- [x] Read/Find all users registered
- [x] Read/Find all user by id
- [ ] Update user
- [ ] Delete user
- [x] Use docker and docker-compose
- [x] Configure MongoDB
- [x] Use task file## Build Setup Docker
```console
user@project:~$ task
```## Stop Docker
```console
user@project:~$ task stop
```## enter n container server (GraphiQL is started at http://127.0.0.1:4000/graphql)
task app# run tests
```console
user@project:~$ yarn test:e2e
user@project:~$ yarn test:cov
```## Query Examples
```graphql
query FindAllUsers {
allUsers {
id
isActive
name
cpf
birthDate
}
}
``````graphql
query FindUserById($findUserByIdId: String!) {
findUserById(id: $findUserByIdId) {
user {
id
isActive
name
cpf
birthDate
}
}
}
``````graphql
mutation CreateUser($user: CreateUserInput!) {
createUser(user: $user) {
user {
id
isActive
name
cpf
birthDate
}
}
}
```