Skip to content

Repository files navigation

Trable Backend Logo

trable

Trable is an indoor-localization system powered by Bluetooth LE.

How to Install:

Make sure to have NodeJS and npm installed.

  1. Clone this repo.
git clone https://github.com/nickcrd/trable &&cd ./trable
  1. Install with npm or yarn
npm install -g . --only=prod
  1. Edit the config found in /config/default.json and /config/mapConfig.json

Setup Trable:

Before you can start using Trable, you need to tweak the config file default.json in the config folder. The table below explains the config keys and what you have to change. You must change authSecret and manifest.apiBaseUrl, otherwise the app won't work. You should also verify if the MongoDB Url matches the one specified in the "mongoDb" key.

keydefault valuedescription
authSecretN/AUsed to sign JWT tokens. Make sure to specify a secure secret token.
mongoDb"mongodb://localhost:27017/trable"URL to the MongoDB database to use
sentryUrlnullSpecify a sentry.io URL if you want to be notified of application errors. This is probably only useful for other developers. Set it to null if you want to disable sentry.io integration.
configLevel"debug"Change the logger level, valid types are: info, verbose, debug
manifest.serverDisplayName"A Trable Server"This will identify your server within the Trable Mobile app and will be shown to the enduser.
manifest.apiBaseUrl"http://172.16.4.35:8080/"Specify an internal or public IP/URL that points to your api base url. Must be routeable from the enduser devices.
kalmanFilterConfig{R: 0.008, Q: 4}Change R and Q of the Kalman Filter used to filter RSSIs, only tweak this if you need to.

Starting Trable:

Start the Trable Master server by running trable inside your command line. You can always override any config keys by appending them to the command.

Example: To override the MongoDB server url, specified within the config as "mongoUrl", type

trable --mongoUrl some-mongo-url-here

Related Repositories:

Trable iOS AppTrable BackendTrable Node

About

MA 2020 | Backend for Trable -- an indoor localization app using Bluetooth Low Energy

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages