Skip to content

nestjs+mysql+typeorm实现的账号系统,高安全性密码加密、基于RBAC的权限设计

Notifications You must be signed in to change notification settings

HiWayne/rainbow-bridge

Repository files navigation

Nest + Mysql + typeorm

介绍

这是一个 node 后端系统。包括用户系统、权限系统等。用户系统采用加盐 SHA512 哈希+10000 次派生算法加密,保证了密码存储的高安全性。用户身份使用双 token (access token + refresh token) 验证,非对称加密算法使用 HS512。权限系统基于 RBAC 设计。

使用

  1. 安装 mysql

  2. 启动 mysql

  3. 执行/sqls/create.sql 创建数据库

  4. npm install

  5. npm run start (本地运行) / npm run build && npm run start:prod (生产运行)

  6. 接口地址看各个 xxx.controller.ts

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Gitter Backers on Open Collective Sponsors on Open Collective

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

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

Stay in touch

License

Nest is MIT licensed.

About

nestjs+mysql+typeorm实现的账号系统,高安全性密码加密、基于RBAC的权限设计

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published