2017coding / Bbs_node
node后端服务,node+express+mysql, 搭建token-权限-管理完整的web服务, 对应页面: https://www.lyh.red/admin \ https://www.lyh.red/bbs \ 接口地址https://www.lyh.red/apidoc/index.html
Stars: ✭ 78
Projects that are alternatives of or similar to Bbs node
Laravel
Muito conteúdo sobre o framework Laravel. Controllers, Models, Views, Blade, Migrations, Seeders, Middlewares, Autenticação, Autorização, Providers, pacotes, laravel 8, etc.
Stars: ✭ 43 (-44.87%)
Mutual labels: controller, mysql, model
Apicache
Simple API-caching middleware for Express/Node.
Stars: ✭ 957 (+1126.92%)
Mutual labels: middleware, express
Jobsort
job board that queries hacker news who is hiring job listings from a database and sorts by tech the user knows and how well the user knows them
Stars: ✭ 20 (-74.36%)
Mutual labels: mysql, express
Taskhelp Api
TODO管理 Node.js Express Typescript練習用プログラム
Stars: ✭ 40 (-48.72%)
Mutual labels: mysql, express
Modelassistant
Elegant library to manage the interactions between view and model in Swift
Stars: ✭ 26 (-66.67%)
Mutual labels: controller, model
Outputcache
Cache api responses using Redis, Memcached or any cache provider for NodeJS
Stars: ✭ 9 (-88.46%)
Mutual labels: middleware, express
Webpack Isomorphic Dev Middleware
The webpack-dev-middleware, but for isomorphic applications
Stars: ✭ 38 (-51.28%)
Mutual labels: middleware, express
Nodepress
😎 RESTful API service for Blog/CMS, powered by @nestjs
Stars: ✭ 829 (+962.82%)
Mutual labels: express, jwt-token
Rainbow
An Express router middleware for RESTful API base on file path.
Stars: ✭ 53 (-32.05%)
Mutual labels: middleware, express
Cetus
Cetus is a high performance middleware that provides transparent routing between your application and any backend MySQL Servers.
Stars: ✭ 1,199 (+1437.18%)
Mutual labels: middleware, mysql
Kona
a node.js service framework built on koa.js (generators)
Stars: ✭ 23 (-70.51%)
Mutual labels: middleware, express
React Express Fullstack
Full stack (mostly unopinionated) starter pack with React+Redux and Expressjs
Stars: ✭ 23 (-70.51%)
Mutual labels: mysql, express
Vue Qq
🎨 Vue family bucket with socket.io and express/koa2 , create a web version of mobile QQ, supporting real-time group chat, real-time private chat, special care, shielding chat, smart IP geographic location, real-time display temperature and other QQ core functions
Stars: ✭ 861 (+1003.85%)
Mutual labels: mysql, express
Go Book Store Api
Go Sample project to understand Mysql CRUD operation with best practises Includes logging, JWT, Swagger and Transactions
Stars: ✭ 18 (-76.92%)
Mutual labels: mysql, jwt-token
Altair
Lightweight and Robust API Gateway written in Go
Stars: ✭ 34 (-56.41%)
Mutual labels: middleware, mysql
Express Openapi Validator
🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification
Stars: ✭ 436 (+458.97%)
Mutual labels: middleware, express
Express Jwt Permissions
🚦 Express middleware for JWT permissions
Stars: ✭ 444 (+469.23%)
Mutual labels: middleware, express
Http Proxy Middleware
⚡ The one-liner node.js http-proxy middleware for connect, express and browser-sync
Stars: ✭ 8,730 (+11092.31%)
Mutual labels: middleware, express
Duckygo
一个同时支持Session以及JWT的高性能高可用 Golang Restful API 脚手架 !
Stars: ✭ 57 (-26.92%)
Mutual labels: mysql, jwt-token
start
- 将mysql目录下的demo.js改成index.js, 并设置好相关的数据库连接信息
- 在mysql中导入LLLyh_BBS.sql
- 将redis目录下的demo.js改成index.js, 并设置好相关的redis连接信息
Build Setup
# 安装依赖
npm install
# 运行项目
npm run dev
# 运行node服务
npm run dev
# 使用热更新打开node服务,方便边开发边调试 (调试时用Debug)
npm run hot
# 更新接口后使用此命令重新生成api相关文档
npm run apidoc
# 使用forever 实现在服务器上关闭控制台时node服务正常访问
npm run start # 启用node服务
npm run stop # 关闭node服务
# 项目基本结构
├── config // 配置相关
├── controller // 控制器
├── model // model
├── mysql // mysql配置文件
├── node_modules // 项目依赖
├── public // 静态资源库
├── routes // 路由
├── .babelrc // babel-loader 配置
├── eslintrc.js // eslint 配置项
├── .gitignore // git 忽略项
├── app.js // 入口 加载配置 初始化
├── index.js // 启动文件
└── package.json // package.json
返回的数据格式
{
success: true, // 响应状态
code: 20000, // 状态码
content: {}, // 数据
message: '操作成功' // 提示
}
返回码和相关提示定义
1 为账号错误 2 为认证错误 3 为参数错误 4 为数据不存在 5 为系统错误 0 为成功
状态码 | 定义 |
---|---|
20101 | 当前被登出 |
20201 | 身份认证失败 |
20202 | 无操作权限 |
20203 | 用户未绑定角色 |
20301 | 参数错误 |
20401 | 数据不存在 |
20501 | 服务器内部错误 |
20000 | 操作成功 |
20001 | 操作失败 |
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].