a community based on Node.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.babelrc
.gitignore first commit project Nov 18, 2017
LICENSE Initial commit Nov 18, 2017
Makefile fix initial create admin bug Apr 26, 2018
README.md Merge branch 'master' of github.com:xugy0926/community Sep 17, 2018
ecosystem.json
package-lock.json change markdown-it to marked Feb 22, 2018
package.json delete redis & update css & fix some bug. Sep 17, 2018
yarn.lock change markdown-it to marked Feb 22, 2018

README.md

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
  1. Run yarn install
$ yarn
  1. Modify src/config/index.dev.js

The three most important configurations

  1. 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
  1. Create src/config/index.pro.js
$ yarn run config
  1. Modify src/config/index.pro.js

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