tony133 / nestjs-api-boilerplate-jwt Goto Github PK
View Code? Open in Web Editor NEWAn API Boilerplate to create a ready-to-use REST API in seconds with NestJS v10.x + TypeORM and JWT Auth ๐ป
License: MIT License
An API Boilerplate to create a ready-to-use REST API in seconds with NestJS v10.x + TypeORM and JWT Auth ๐ป
License: MIT License
using nest module: https://github.com/nest-modules/mailer
Evaluate if it is convenient to create a custom form to send emails.
Add a data source agnostic services
Check invalidate refresh token
Change typeorm with a query generator or raw sql or another orm
Hello, I get this error
No connection options were found in any orm configuration files
after run
ts-node node_modules/.bin/typeorm migration:run
nest -v
8.1.5
node -v
v17.5.0
ts-node -v
v10.5.0
Update version NestJS v8
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
docker-compose.yml
mysql 8.3
mysql 8.3
.github/workflows/codeql-analysis.yml
actions/checkout v4@692973e3d937129bcbf40652eb9f2f61becf3332
github/codeql-action v3
github/codeql-action v3
github/codeql-action v3
.github/workflows/nodejs-environment.yml
actions/checkout v4
pnpm/action-setup v2
actions/setup-node v4
actions/checkout v4
actions/setup-node v4
pnpm/action-setup v2
package.json
@fastify/cors ^9.0.1
@fastify/static ^7.0.4
@nestjs/common ^10.4.0
@nestjs/config ^3.2.3
@nestjs/core ^10.4.0
@nestjs/jwt ^10.2.0
@nestjs/mapped-types 2.0.5
@nestjs/platform-fastify ^10.4.0
@nestjs/swagger ^7.4.0
@nestjs/throttler ^6.1.0
@nestjs/typeorm ^10.0.2
bcrypt ^5.1.1
class-transformer ^0.5.1
class-validator ^0.14.1
dotenv ^16.4.5
fastify ^4.28.0
mysql2 ^3.10.2
nodemailer ^6.9.13
pino ^9.3.2
pino-pretty ^11.2.2
reflect-metadata ^0.2.2
rimraf ^5.0.7
rxjs ^7.8.1
typeorm ^0.3.20
yup ^1.4.0
@commitlint/cli ^19.3.0
@commitlint/config-angular ^19.3.0
@nestjs/cli ^10.3.2
@nestjs/schematics ^10.1.3
@nestjs/testing ^10.4.0
@types/bcrypt ^5.0.2
@types/jest ^29.5.12
@types/node ^20.14.2
@types/nodemailer ^6.4.15
@types/supertest ^6.0.2
@typescript-eslint/eslint-plugin ^8.0.0
@typescript-eslint/parser ^8.0.0
eslint 9.9.0
eslint-config-prettier ^9.1.0
eslint-plugin-prettier ^5.1.3
husky ^9.0.11
jest ^29.7.0
prettier ^3.3.2
supertest ^7.0.0
ts-jest ^29.1.4
ts-loader ^9.5.1
ts-node ^10.9.2
tsconfig-paths ^4.2.0
typescript ^5.4.5
Update version NestJS 7.x
Hi Tony,
Sorry if I abused your issues. I wanted to ask you a question or send you a message regarding this repo (I guess it will be greate if Github allows user send message to each other)
in the validate function of jwt.strategy.ts
why do you need this.loginService.validateUserByJwt()
since the validation is done by jwt, and if it pass, you will receive
the user playload in the validation function, otherwise the framework will throw unauthorized exception directly?
I am in the process of learn it, so maybe I am missing something.
Thanks
Fix the following e2e tests:
PR: #257
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.