Mockable API
API for mock http responses
Get starting
A .env file should be created in root path, without this file the application will not start!
Below keys must be replaced with valid values.
Keys |
---|
SENTRY_DSN |
MONGO_USER |
MONGO_PASSWORD |
MONGO_URI |
REDIS_HOST |
REDIS_PORT |
REDIS_KEY_PREFIX |
REDIS_PASSWORD |
After that execute: docker-compose up
Tip: If you want to see application logs add DEBUG=mockable*
in .env file
Debugging
Select "Docker" profile and press F5
Tests
All tests are executed in docker with npm test
Lint
Lint is executed with npm run lint
command
Application URLs
- Helth check: http://localhost:3000
- Documentation: http://localhost:3000/docs