The new FinBIF API, that FinBIF will migrate to.
See breaking changes against the old API
Check the wiki for a more technically detailed documentation.
Fill in .env file, using .env.example as a template.
Note that access tokens are not read from a remote source, but a local file instead. Either generate tokens with the 'API User' endpoints or grab the api-users.db from staging machine.
The app can be ran inside a docker, or directly on the host machine.
Use docker to build & start the app:
npm run dockerHint: The docker container runs any npm script, start:dev being the default. You can run other scripts like so:
npm run docker -- test:e2eInstall the dependencies:
npm ciInstall the following:
- Start Redis
npm run start:dev
The app will be running at http://localhost:3004
Hint: The npm command works also with the aforementioned Docker container. These examples run npm directly for simplicity.
Unit tests cover so far only some core logic. They act also as documentation for how they are supposed to work.
With Docker:
npm run docker -- testWithout Docker:
npm testCurrently we rely on the e2e tests from the old api. Fill in e2e/config.json and then you can run the tests:
With Docker:
npm run docker -- test:e2eWithout Docker:
npm run test:e2eYou can contact us by sending feedback from laji.fi.
MIT.