https://github.com/jkhuangfu/node_server
one server for personal blog by node
https://github.com/jkhuangfu/node_server
blog express node node-mysql node-server pm2 redis
Last synced: 10 months ago
JSON representation
one server for personal blog by node
- Host: GitHub
- URL: https://github.com/jkhuangfu/node_server
- Owner: jkhuangfu
- License: mit
- Created: 2017-09-29T09:28:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-22T01:55:22.000Z (over 5 years ago)
- Last Synced: 2025-04-04T09:51:12.178Z (11 months ago)
- Topics: blog, express, node, node-mysql, node-server, pm2, redis
- Language: JavaScript
- Homepage:
- Size: 1.77 MB
- Stars: 11
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
>此项目使用技术栈为 node express mysql express-session redis express-router socket.io websocket
>koa-js版本: [点击查看koa-js版本](https://github.com/jkhuangfu/node_server/tree/koa-version)
>koa2-ts版本: [点击查看koa2-ts版本](https://github.com/jkhuangfu/koa-ts)
### 运行前准备
1、安装node(>8版本)
2、安装redis
3、安装mysql
4、创建blog数据库并创建相关表(表结构在sql/blog.sql)
### 运行说明
(1) npm install | yarn install
(2) npm run dev(development) | npm run start(production)
(3) pm2 start start.json --env production (需要全局安装pm2---> npm install -g pm2;若不加参数env参数则默认开发环境加了则是线上环境)