Coder Social home page Coder Social logo

pager's Introduction

** 注意: 开发中, 请勿用于生产环境. **

使用方法

  • 克隆代码
$ git clone https://github.com/laispace/pager.git
  • 安装依赖
$ cd pager
$ npm install
  • 开启 mongodb
$ sudo mongod

需要提前创建好名为 pager 的数据库, 并添加帐号为 pager 密码为 pass4pager 的用户.

$ mongo
use pager
db.createUser(
   {
     user: "pager",
     pwd: "pass4pager",
     roles: [ "readWrite", "dbAdmin" ]
   }
)

创建数据库配置文件 mongod.cfg ,开启权限验证

systemLog:
    destination: file
    path: path/to/mongod.cfg
storage:
    dbPath: path/to/db
security:
   authorization: enabled

重启数据库,指定配置文件

$ sudo mongod -f path/to/mongod.cfg

  • 开发调试
$ npm run start
  • 构建
$ npm run build

pager's People

Contributors

laispace avatar

Watchers

hadi avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.