Skip to content

cbmjs/cbm-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbm-engine

Server-side code of the cbmjs platform.

build Deploy

Intro

Code for the server-side of the CallByMeaning Project. You don't need this package to use the project. You can do so by using cbm-api.

For a bit more information on what you can do, check the docs.

Run locally

git clone https://github.com/cbmjs/cbm-engine.git cbm-engine
cd cbm-engine
npm i
DB_HOST=mongodb://user:pass@host:port/callbymeaning npm start

Default host is http://localhost and port is 3000 but you can change that by specifying a PORT env variable.

If mongo is local, you only need to specify the name of the database by using the DB env variable, instead of the DB_HOST.

Docker

You can use Docker to run the web server too. Just clone the repository, change the DB_HOST accordingly here and then:

git clone https://github.com/cbmjs/cbm-engine.git cbm-engine
cd cbm-engine
docker build -t call-by-meaning .
docker run -p 3000:3000 call-by-meaning

Unit Tests

Run tests via the command npm test