Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hmake98/nestjs-starter

๐Ÿš€ NestJS starter boilerplate with Basic Authentication, Swagger docs, Containerized - k8S confguration and Testing
https://github.com/hmake98/nestjs-starter

boilerplate docker docker-compose jest-tests kubernetes nestjs postgres redis typescript

Last synced: 2 days ago
JSON representation

๐Ÿš€ NestJS starter boilerplate with Basic Authentication, Swagger docs, Containerized - k8S confguration and Testing

Awesome Lists containing this project

README

        

# NestJS Starter Boilerplate
[![CodeQL](https://github.com/hmake98/nestjs-starter/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/hmake98/nestjs-starter/actions/workflows/github-code-scanning/codeql)
[![Run Tests](https://github.com/hmake98/nestjs-starter/actions/workflows/tests.yml/badge.svg)](https://github.com/hmake98/nestjs-starter/actions/workflows/main.yml)

Features:

โœ… Basic Authentication

๐Ÿ“š Swagger API Documentation

๐Ÿณ Containerized with Docker

โ˜ธ๏ธ Kubernetes Configuration

๐Ÿงช Testing Setup

## Installation

```bash
$ yarn
```

## Running Server

```bash
# development
$ yarn dev

# production
$ yarn start
```

## Running all services on Docker

```bash
docker-compose up --build
```

## Run only database and redis services on Docker

```bash
docker-compose up postgres redis
```

## Build

```bash
yarn build
```

## Tests

```bash
# unit tests
$ yarn test
```

## Swagger Documentation

- Swagger documentation endpoint will be running at `/docs` .

## K8s Deployment Local

```bash
# first start minikube
minikube start

# deployment
kubectl apply -f k8s/

# get endpoint of k8s cluster
minikube service nestjs-starter-service
```

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

## License

Nest is [MIT licensed](LICENSE).

## Author

๐Ÿ‡ฎ๐Ÿ‡ณ Harsh Makwana

[Github](https://github.com/hmake98/nestjs-starter)
[Linkedin](https://www.linkedin.com/in/hmake98)
[Instagram](https://www.instagram.com/hmake98)