microab
MicroAB is an A/B Testing API for express applications. Typically A/B testing frameworks provide an SDK bundle which affects page load time. Microab is a thin middleware for express application enabling A/B testing via a node server with persistence in redis.
Dependencies
Installation
npm install --save microab
Usage
const microab = ;const cookieParser = ; app; const microabClient = microab; microabClient;
This will create 2 tests with their appt configs and store them in redis
Check Test Results
app;
This middleware will create an object in res.locals
asper the test name for the home route. The middleware can used to check the ab test result for various routes.
This can now be used in your route handler, in which ever way the developer wishes to.
Local development
Start Redis
redis-server
To start
node examples/demo.js http://localhost:3000/greenhttp://localhost:3000
should give you a response like this
Roadmap
- Complete basic test cases
- Create some for of tracking via a CLI interface
- Implement a web interface where tests can be addded and edited
Found a bug
File it here