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

https://github.com/romijulianto/nestjs-backend-template

Template backend using NestJS (Prisma, Auth JWT, CRUD)
https://github.com/romijulianto/nestjs-backend-template

backend jwt-token nest

Last synced: 2 months ago
JSON representation

Template backend using NestJS (Prisma, Auth JWT, CRUD)

Awesome Lists containing this project

README

        


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
$ pnpm install
```

## Running the app

```bash
# prisma studio
$ npx prisma studio

# development
$ pnpm run start

# watch mode
$ pnpm run start:dev

# production mode
$ pnpm run start:prod

```

## Test

```bash
# unit tests
$ pnpm run test

# e2e tests
$ pnpm run test:e2e

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

## Generate Resources

```bash
# generate resources in custom path
$ npx nest generate resource users --path src/resources
```

## Database

```bash
# run migration
$ npx prisma migrate dev --name "init"
$ npx prisma migrate dev --name "add-user-model"

# run generate
$ npx prisma generate

# run seeder
$ npx prisma db seed

# verify database are added
$ npx prisma studio
```

## Server

```bash
# Server API
$ base_url:3000/api/docs

# Server Prisma Table
$ base_url:5555
```

## Running the app

```bash
pm2 start dist/src/main.js --name median-backend
```

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