https://github.com/xugy0926/community
a community based on Node.js
https://github.com/xugy0926/community
ejs graphql javascript mongodb nodejs pm2 vue yarn
Last synced: 2 months ago
JSON representation
a community based on Node.js
- Host: GitHub
- URL: https://github.com/xugy0926/community
- Owner: xugy0926
- License: mit
- Created: 2017-11-18T09:33:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-21T11:22:53.000Z (over 6 years ago)
- Last Synced: 2025-02-02T01:31:58.361Z (3 months ago)
- Topics: ejs, graphql, javascript, mongodb, nodejs, pm2, vue, yarn
- Language: JavaScript
- Size: 1.88 MB
- Stars: 43
- Watchers: 4
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## Getting Started
#### Requirements
- Yarn package
- Node.js v8.9.1 or newer
- pm2 package#### Data storage
- mongodb
#### Quick Start
1. Get the latest version
```
$ git clone https://github.com/xugy0926/community.git
$ cd community
```2. Run yarn install
```
$ yarn
```3. Modify src/config/index.dev.js
The three most important configurations
- mongodb
- github,获取 github 登录用的信息请参考 https://github.com/settings/developers4. Run dev
```
$ yarn run dev
```## Deploy
#### How to deploy
1. Get the latest version
```
$ git clone https://github.com/xugy0926/community.git
$ cd community
$ yarn
```2. Create src/config/index.pro.js
```
$ yarn run config
```3. Modify src/config/index.pro.js
4. Run production
```
$ yarn run build
$ NODE_ENV=production PORT=80 pm2 start dist/server.js --name "community"
```or
```
$make depoly
```#### How to update
```
$ git pull
$ yarn
$ yarn run build
$ pm2 stop community
$ pm2 start community
```or
```
$ make update
```#### pm2 deploy
```
pm2 deploy ecosystem.json production --force
```