0.0.8 • Published 2 years ago

eis-module-starter-kit v0.0.8

Weekly downloads
1
License
GPL-1.0-or-later
Repository
-
Last release
2 years ago

EIS-module-starter-kit

This is the starter kit for the EIS system backend. All eis backend modules should be used base on this project.

Database

Before using this starter kit, please make sure the mongodb was installed on your system.

The default database name was eis_db_dev1 which can be changed in the configuration file for each environment.For more information please see the eis-module-mongodb module.

Usage

  1. Download the EIS backend starter kit.
  2. In the starter kit project, add any modules as you wish by running 'yarn add eis-module-xxx'. By default the core module and the mongodb module were added to this project already.
  3. Install dependencies by running 'yarn install'.
  4. Run the starter kit project by running 'yarn start'.

Try

  1. From the terminal you might will get the following error (from the second run), please open the mongodb terminal and run these commands to create indexes, and then try to start the server again:

    db.authors.createIndex({Name: 1}, {unique: true, sparse: false})

    db.authors.createIndex({id: 1}, {unique: true, sparse: false})

    These errors are created because the EIS is not creating any needed new indexes automatically, although there's configuration to enable it, for security and performance concern, especially in production env.

  2. From browser try to access following addresses, you will get the response from the interfaces:

How this works

Modules

Global hooks

Configuration

Testing