Launch Room is a feature flag service that is lightweight and compatible with LaunchDarkly client.
User guide: How to integrate your service with launch-room?
All the descriptions below are for the development of launch-room itself.
git clone git@github.com:puncsky/launch-room.git
This is intended for *nix users. If you use Windows, go to Run on Windows. Let's first prepare the environment.
cd launch-room
nvm use 14.15.4
npm install
# prepare environment variable
cp ./.env.tmpl ./.env
To run your project in development mode, run:
npm run watch
The development site will be available at http://localhost:4105.
It's sometimes useful to run a project in production mode, for example, to check bundle size or to debug a production-only issue. To run your project in production mode locally, run:
npm run build-production
NODE_ENV=production npm run start
npm run test
: test the whole project and generate a test coveragenpm run ava ./path/to/test-file.js
: run a specific test filenpm run build
: build source code fromsrc
todist
npm run lint
: run the linternpm run kill
: kill the node server occupying the port 4105.