All Projects → xiaoping6688 → Node Server Project

xiaoping6688 / Node Server Project

基于 node.js + express 技术栈,采用MVC结构设计、JWT + RESTful API、PM2服务监控的Node服务器端项目框架.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Server Project

Vue2 blog
使用vue2.x + vue-cli +vue-router+ vuex + axios + mysql + express + pm2 + webpack+nginx构建的具有登录,注册,留言,用户发帖,用户评论等功能的SPA Blog。注意,注意,注意,后端API全部自己手写,很适合刚学习vue以及express的小伙伴学习,喜欢请Star鼓励一下我,谢谢!项目预览:
Stars: ✭ 417 (+787.23%)
Mutual labels:  mysql, pm2
Phalcon Vm
Vagrant configuration for PHP7, Phalcon 3.x and Zephir development.
Stars: ✭ 43 (-8.51%)
Mutual labels:  mysql, rabbitmq
Cookbook
🎉🎉🎉JAVA高级架构师技术栈==任何技能通过 “刻意练习” 都可以达到融会贯通的境界,就像烹饪一样,这里有一份JAVA开发技术手册,只需要增加自己练习的次数。🏃🏃🏃
Stars: ✭ 428 (+810.64%)
Mutual labels:  mysql, rabbitmq
Koa Vue Notes Api
🤓 This is a simple SPA built using Koa as the backend, Vue as the first frontend, and React as the second frontend. Features MySQL integration, user authentication, CRUD note actions, and async/await.
Stars: ✭ 342 (+627.66%)
Mutual labels:  mysql, pm2
Mall Swarm
mall-swarm是一套微服务商城系统,采用了 Spring Cloud Hoxton & Alibaba、Spring Boot 2.3、Oauth2、MyBatis、Docker、Elasticsearch、Kubernetes等核心技术,同时提供了基于Vue的管理后台方便快速搭建系统。mall-swarm在电商业务的基础集成了注册中心、配置中心、监控中心、网关等系统功能。文档齐全,附带全套Spring Cloud教程。
Stars: ✭ 7,874 (+16653.19%)
Mutual labels:  mysql, rabbitmq
Full Stack Notes
全栈工程师手册
Stars: ✭ 366 (+678.72%)
Mutual labels:  mysql, rabbitmq
Leafpub
Simple, beautiful, open source publishing.
Stars: ✭ 645 (+1272.34%)
Mutual labels:  mysql, handlebars
Finagle
A fault tolerant, protocol-agnostic RPC system
Stars: ✭ 8,126 (+17189.36%)
Mutual labels:  thrift, mysql
Bifrost
Bifrost ---- 面向生产环境的 MySQL 同步到Redis,MongoDB,ClickHouse,MySQL等服务的异构中间件
Stars: ✭ 701 (+1391.49%)
Mutual labels:  mysql, rabbitmq
Pmacct
pmacct is a small set of multi-purpose passive network monitoring tools [NetFlow IPFIX sFlow libpcap BGP BMP RPKI IGP Streaming Telemetry].
Stars: ✭ 677 (+1340.43%)
Mutual labels:  mysql, rabbitmq
Springboot Learning
基于Gradle构建,使用SpringBoot在各个场景的应用,包括集成消息中间件、前后端分离、数据库、缓存、分布式锁、分布式事务等
Stars: ✭ 340 (+623.4%)
Mutual labels:  thrift, rabbitmq
Socket Io
基于Hyperf微服务协程框架开发的sokcet-io分布式系统
Stars: ✭ 38 (-19.15%)
Mutual labels:  mysql, rabbitmq
Springboot Rabbitmq
RabbitMQ的简单介绍、安装及与SpringBoot整合构建高可用的消息传递方案
Stars: ✭ 320 (+580.85%)
Mutual labels:  mysql, rabbitmq
Gnomock
Test your code without writing mocks with ephemeral Docker containers 📦 Setup popular services with just a couple lines of code ⏱️ No bash, no yaml, only code 💻
Stars: ✭ 398 (+746.81%)
Mutual labels:  mysql, rabbitmq
Elves
开源自动化运维开发平台(IT Automatic Develop Platform)
Stars: ✭ 290 (+517.02%)
Mutual labels:  thrift, rabbitmq
Pdf
编程电子书,电子书,编程书籍,包括C,C#,Docker,Elasticsearch,Git,Hadoop,HeadFirst,Java,Javascript,jvm,Kafka,Linux,Maven,MongoDB,MyBatis,MySQL,Netty,Nginx,Python,RabbitMQ,Redis,Scala,Solr,Spark,Spring,SpringBoot,SpringCloud,TCPIP,Tomcat,Zookeeper,人工智能,大数据类,并发编程,数据库类,数据挖掘,新面试题,架构设计,算法系列,计算机类,设计模式,软件测试,重构优化,等更多分类
Stars: ✭ 12,009 (+25451.06%)
Mutual labels:  mysql, rabbitmq
React Ssr
React 服务端渲染(SSR),react + redux + koa2 + sequelize + mysql全栈项目(Full Stack)
Stars: ✭ 205 (+336.17%)
Mutual labels:  mysql, pm2
Kickoff Docker Php
🐳 🐘 🚀 Easily setup a PHP project with Docker
Stars: ✭ 213 (+353.19%)
Mutual labels:  mysql, rabbitmq
Jboot
一个优雅的微服务框架,SpringCloud 之外的另一个选择,已经使用在用户量过亿的商业产品上,有超过1000家公司在使用Jboot做极速开发...
Stars: ✭ 655 (+1293.62%)
Mutual labels:  thrift, rabbitmq
Crawl
selenium异步爬取网页图片
Stars: ✭ 13 (-72.34%)
Mutual labels:  mysql, rabbitmq

node-server-project

基于 node.js + express 技术栈,采用MVC结构设计、JWT + RESTful API、PM2服务监控的Node Web项目框架。

技术栈

  • node.js(>7.0,已原生支持绝大部分ES6/ES7语法)
  • express(成熟稳定的Web框架)
  • hbs(handlebars后端模版引擎,语法简洁高效、实现模版继承和内嵌功能等)
  • RESTful(API架构风格,并提供统一的接口输出结构)
  • JWT(Json Web Token 认证协议,用于页面和API的验证,包括token续期方案等)
  • ORM(数据库对象关系映射)
  • TEST(集成在线API文档生成和测试工具Swagger-ui,public/swagger目录下)
  • RabbitMQ & Thrift & 环信服务端 集成等
  • PM2(Node服务自动部署和监控)

关于API接口文档管理及线上线下测试,推荐:SosoApi

Build Setup @see package.json#scripts

Install dependencies, use cnpm:

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install

Start server for development or production (pm2)

npm start

Auto restarting server and reloading browsers for development

npm run live:client // 客户端源码变动实时监测
npm run live:server // 服务端源码变动实时监测

For unit test, such as:

npm test ./test/api/login.js

Debug node code

Please install 'npm install -g node-inspector' at first

npm run debug

Check update for npm packages

Please install 'npm install npm-check-updates -g' at first

npm run update

PM2 operations and deploy(基于Git)

First of all, please install node.js and git on the server and set $PATH env in ~/.bashrc

export NODE_HOME=/data/node-v7.7.4-linux-x64
export PATH=$NODE_HOME/bin:$PATH

Host key verification after you execute ssh-keygen on server, and set ssh-key to gitlab.

ssh-keyscan -t rsa yourGitServer >> ~/.ssh/known_hosts

For client ssh password-less logon

ssh-keygen -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

then, use ·npm run setup:test· for the first time, other deployment use ·npm run deploy:test·

npm run setup:test // 测试环境远程部署(第一次安装)
npm run setup:simu // 仿真环境远程部署(第一次安装)
npm run setup:prod // 生产环境远程部署(第一次安装)
npm run deploy:test // 测试环境远程部署(后期更新)
npm run deploy:simu // 仿真环境远程部署(后期更新)
npm run deploy:prod // 生产环境远程部署(后期更新)
npm run stop
npm run reload
npm run list
npm run monit
npm run logs
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].