This is a RESTful API built with Node.js Express, designed to serve CUSTOM data from Killbill's database to the Fleet-Towit client. It handles only the GET operation to avoid conflicts with Killbill's internal event chain. It can handle requests for one or multiple resources, and complies with Killbill's authentication system.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- You need to have Node.js and Docker and
docker-compose
installed on your machine. - Config your the follow Docker machine ( Guide 4 running Kill Bill )
- Clone the repository
- Clone
.env.example
and rename for.env
then fill the values with your Kill Bill stacks: - Install the dependencies with
npm install
- And Happy coding :)
You can run the app with the following npm script:
npm start
For development, you can use:
npm run dev
You can run the tests with the following npm script:
npm test
- @prisma/client: Prisma Client is an auto-generated database client that enables type-safe database access and reduces boilerplate. You can use it as an alternative to traditional ORMs such as Sequelize, TypeORM.
- express: Fast, unopinionated, minimalist web framework for Node.js
- swagger-jsdoc: Generates swagger doc based on JSDoc.
- swagger-ui-express: This module allows you to serve auto-generated swagger-ui generated API docs from express, based on a swagger.json or swagger.yaml file.
- chai: Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.
- chai-http: Plugin for Chai to allow HTTP integration testing with Chai assertions.
- mocha: Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun.
- supertest: SuperTest is a super-flexible library that allows you to test HTTP servers using a fluent API.