All Projects → LiangLuDev → node-dev-server

LiangLuDev / node-dev-server

Licence: other
基于Express,Sequelize、IIS的MVC新手项目

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to node-dev-server

pyseto
A Python implementation of PASETO and PASERK.
Stars: ✭ 21 (+75%)
Mutual labels:  token
fastapi-auth0
FastAPI authentication and authorization using auth0.com
Stars: ✭ 104 (+766.67%)
Mutual labels:  token
Spring-Api-APP
用以快速构建APP专用的API后台系统,可选全接口加密,保证数据安全,全局异常处理,使用Token作为无状态登录验证,security做权限验证,swagger-2-API可视化及调试,可以作为微服务使用
Stars: ✭ 51 (+325%)
Mutual labels:  token
wily
Build Node.js APIs from the command line (Dead Project 😵)
Stars: ✭ 14 (+16.67%)
Mutual labels:  sequelize
todo-list
A practical web application built with Node.js, Express, and MySQL for you to readily record, view, and manage your tasks with an account: Create, view, edit, delete, filter, and sort expenses are as easy as pie 🥧
Stars: ✭ 18 (+50%)
Mutual labels:  sequelize
mock-oauth2-server
A scriptable/customizable web server for testing HTTP clients using OAuth2/OpenID Connect or applications with a dependency to a running OAuth2 server (i.e. APIs requiring signed JWTs from a known issuer)
Stars: ✭ 83 (+591.67%)
Mutual labels:  token
expressjs-typescript-course
Expressjs + TypeScript + Sequelize for Nusendra.com Youtube channel
Stars: ✭ 22 (+83.33%)
Mutual labels:  sequelize
ethereum-dex
Decentralized exchange implementation for the 0xcert protocol on the Ethereum blockchain.
Stars: ✭ 18 (+50%)
Mutual labels:  token
Riot
A simple Discord Token Grabber sending the new token if the victim changes his password.
Stars: ✭ 59 (+391.67%)
Mutual labels:  token
TheWorldExchange
A purely client-side wallet and direct interface showcasing the full functionality of Ripple / blockchain.
Stars: ✭ 34 (+183.33%)
Mutual labels:  token
dhiwise-nodejs
DhiWise Node.js API generator allows you to instantly generate secure REST APIs. Just supply your database schema to DhiWise, and a fully documented CRUD APIs will be ready for consumption in a few simple clicks. The generated code is clean, scalable, and customizable.
Stars: ✭ 224 (+1766.67%)
Mutual labels:  sequelize
erc1363-payable-token
Code implementation for the ERC-1363 Payable Token
Stars: ✭ 83 (+591.67%)
Mutual labels:  token
opentelemetry-ext-js
js extensions for the open-telemetry project
Stars: ✭ 122 (+916.67%)
Mutual labels:  sequelize
protocol
Covee protocol for decentralized teamwork
Stars: ✭ 18 (+50%)
Mutual labels:  token
Batched-Grabber
🖥️ Windows Batch and powershell Discord Token grabber. Made for Troll (lmao)
Stars: ✭ 39 (+225%)
Mutual labels:  token
Discord-AIO
Discord AIO (All In One) - discord stealer/token grabber builder with token checks, webhook spammer, obfuscation, encryption, crypto miner, RAT and a lot of extra features.
Stars: ✭ 105 (+775%)
Mutual labels:  token
graphcraft
Rapildy build and extend GraphQL API based on Sequelize models. This library helps you focus on business logic while taking care of GraphQL schema automatically.
Stars: ✭ 50 (+316.67%)
Mutual labels:  sequelize
gobarber
Projeto desenvolvido durante as aulas do Bootcamp GoStack10 da Rocketseat
Stars: ✭ 15 (+25%)
Mutual labels:  sequelize
Windows-Python-RAT
A New Microsoft Windows Remote Administrator Tool [RAT] with Python by Sir.4m1R.
Stars: ✭ 70 (+483.33%)
Mutual labels:  token
Awesome NFTs
A curated collection about NFTs - by bt3gl
Stars: ✭ 42 (+250%)
Mutual labels:  token

node-dev-server(基于Express,Sequelize、IIS的MVC新手项目)

项目简洁精悍,基本使用功能全部实现,很适合新手入门

功能应用

  • 基于Express开发
  • token登录验证
  • 数据库模块Sequelize使用
  • windows server iis部署

项目介绍

1. 基于Express开发

Express框架的强大无法言语,可以省很多事情。让开发更简单 你还不知道?先去了解一下吧 Express 4.X中文文档

2. 使用Token验证

用户创建的创建token,后面每个请求header携带token 更多用法可以 查看使用文档

token验证

    // 取token 数据 
    let token = req.headers['access-token'];
    //token验证
    jwt.verify(token, constant.jwtsecret, (err, decoded) => {
            if (err) {
               ...
            } else {
                req.decoded = decoded;
                next();//继续下一步路由
            }
        })

3. Sql框架Sequelize使用

Sequelize框架针对于mysql、sqlite、postgres、sql (微软数据库)的使用 更多使用查看使用文档 英文版 中文版

数据库配置连接

const sequelize = new Sequelize('数据库', '用户名', '密码', {
    host: 'localhost',//数据库地址
    dialect: 'mssql',//数据库类型  'mysql'|'sqlite'|'postgres'|'mssql'
    // 用于数据库连接池的池配置
    pool: {
        max: 5,
        idle: 30000,
        acquire: 60000,
    },
    define: {
        timestamps: false,
        // schema: "dbo"
    }
});
//测试数据库链接
sequelize.authenticate().then(function () {
    console.log("数据库连接成功");
}).catch(function (err) {
    //数据库连接失败时打印输出
    console.error(err);
    throw err;
});

数据库使用 ps.我只列出了基本操作,具体操作可看代码实现,代码注释清楚

    创建用户  User.create(value)
	查询符合条件的第一个用户  User.findOne(options)
    更新用户信息 User.update(value, options)
    删除用户 User.destroy(options)

3. windows server iis部署

如果服务器使用的不是windows server 系统,下面就不用管了。 根目录的web.config文件针对于在iis部署项目的文件。 具体部署流程

意见反馈


如果代码有错误,或者有什么不清楚的地方,请反馈到:issue、[email protected] 或者[email protected]

如果觉得对你有用的话,点一下右上的星星赞一下吧!

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