An open API service indexing awesome lists of open source software.

https://github.com/csdev19/nest-gha

Nest project to test Github Action
https://github.com/csdev19/nest-gha

Last synced: 2 months ago
JSON representation

Nest project to test Github Action

Awesome Lists containing this project

README

        

# Nest Boilerplate

πŸ”₯ Nest boilerplate to create projects as fast as possible πŸ”₯

## Features

- [x] [Nestjs performance Fastify](https://docs.nestjs.com/techniques/performance)
- [x] [Swagger](https://swagger.io/)
- [x] [Typeorm](https://typeorm.io/)
- [x] [Docker compose](https://docs.docker.com/engine/reference/commandline/compose/)
- [x] [Eslint](https://eslint.org/)
- [x] [Prettier](https://prettier.io/)
- [x] [Docker](https://www.docker.com/)
- [ ] [Jest](https://jestjs.io/)

## Code standards

- The modules are plural **(module-name.module.ts)**
- The controllers are plural and his path too **(controller-name.controller.ts)**
- The services are plural **(service-name.service.ts)**
- The entities are singular **(entity-name.entity.ts)**

## Actual Folder structure

```
β”œβ”€β”€ dist/
β”œβ”€β”€ docker-compose.yml
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ nest-cli.json
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ README.md
β”œβ”€β”€ src/
β”‚ β”œβ”€β”€ app.module.ts
β”‚ β”œβ”€β”€ main.ts
β”‚ └── modules/
β”‚ β”œβ”€β”€ /
β”‚ β”‚ β”œβ”€β”€ .module.ts
β”‚ β”‚ β”œβ”€β”€ dtos/
β”‚ β”‚ β”œβ”€β”€ entities/
β”‚ β”‚ β”œβ”€β”€ services/
β”‚ β”‚ └── interfaces/
β”‚ β”œβ”€β”€ authentication/
β”‚ β”‚ β”œβ”€β”€ authentication.controller.ts
β”‚ β”‚ β”œβ”€β”€ authentication.module.ts
β”‚ β”‚ β”œβ”€β”€ constants/
β”‚ β”‚ β”œβ”€β”€ decorators/
β”‚ β”‚ β”œβ”€β”€ dtos/
β”‚ β”‚ β”œβ”€β”€ encrypt/
β”‚ β”‚ β”œβ”€β”€ guards/
β”‚ β”‚ β”œβ”€β”€ services/
β”‚ β”‚ └── strategies/
β”‚ └── note
β”‚ β”œβ”€β”€ dtos/
β”‚ β”œβ”€β”€ interfaces/
β”‚ β”œβ”€β”€ note.controller.ts
β”‚ β”œβ”€β”€ note.entity.ts
β”‚ β”œβ”€β”€ note.module.ts
β”‚ └── note.service.ts
β”œβ”€β”€ test/
β”‚ β”œβ”€β”€ app.e2e-spec.ts
β”‚ └── jest-e2e.json
β”œβ”€β”€ tsconfig.build.json
└── tsconfig.json
```

## Module structure

```
β”œβ”€β”€ /
β”‚ β”œβ”€β”€ .module.ts
β”‚ β”œβ”€β”€ dtos/
β”‚ β”œβ”€β”€ entities/
β”‚ β”œβ”€β”€ services/
β”‚ └── interfaces/
```

## Contributors

- Author - Cristian Sotomayor [@csdev](https://github.com/csdev19)

## Extra

If youy want to use snake-case go to this [package](https://www.npmjs.com/package/typeorm-naming-strategies)

### Docker

There is a `docker-compose.yml` file for starting Docker.

`docker-compose up`

After running the sample, you can stop the Docker container with

`docker-compose down`

```
docker-compose up -d postgres
docker-compose ps
docker-compose down
```

[docker investigation ](https://blog.logrocket.com/docker-volumes-vs-bind-mounts/)


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.



NPM Version
Package License
NPM Downloads
CircleCI
Coverage
Discord
Backers on Open Collective
Sponsors on Open Collective

Support us


## Description

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Installation

```bash
$ npm install
```

## Running the app

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

## Stay in touch

- Author - [Kamil MyΕ›liwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](LICENSE).