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)
- Host: GitHub
- URL: https://github.com/romijulianto/nestjs-backend-template
- Owner: romijulianto
- Created: 2024-01-10T13:53:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-17T09:11:53.000Z (over 1 year ago)
- Last Synced: 2025-01-19T08:15:11.218Z (4 months ago)
- Topics: backend, jwt-token, nest
- Language: TypeScript
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[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.
## 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).