Steps to run: At the root of the project, run:
npm install
npm run dev
This will start the service at port 8080 or which is provided in the .env file.
This service uses a sqlite db which is given in src/config/databases/aspire.db
To run the tests,
npm run test
Steps to use the application:
- Sign up at the endpoint /auth/signup
- Login using the password at /auth/login
- Use the user.id as token for further requests
- Pass user id in header with key x-user-id
Now you can create a loan, view the list of loans, approve the loan(admin only) and repay for the loan schedules.