Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.11 KB

developing-bender.md

File metadata and controls

41 lines (24 loc) · 1.11 KB

Developing Bender

Pre-requisites

Before running Bender, make sure you have Node.js v16.14.0 or higher & NPM installed.

MongoDB & Redis

You'll need to spin up Redis & MongoDB to run Bender. MongoDB will require additional setup for access control; details on how to do this may be added later.

Environment

Run the following command to create a file for environment variables:

(On Windows use copy instead of cp)

$ cp example.env .env

And fill in the environment variables. You will only need to supply a token for Bender Alpha in the TOKEN_ALPHA key, instead of all the TOKEN_xxx keys.

Installing Packages

All dependencies are included in package.json and can be installed with:

$ npm i

You may need to configure your code editor to use the local folder's copy of TypeScript; Bender requires version 4.7.3 or higher.

Running Bender

Assuming Redis and MongoDB are running, all you need to do to run Bender is:

$ npm start

This will automatically run the prestart script, which will transpile the code and copy your .env file to the dist folder.