Skip to content

bhuvinth/rentPaymentHistory

Repository files navigation

Zahlungsverlauf Application

This is a GraphQL application to help you store a Tenant's payment History. This has basic features for:

  1. Getting Rent Payment history for Tenant's Contract Id between a Range of Dates
  2. Adding a Rent Payment for a Tenant's Contract Id.
  3. Updating a Rent Payment
  4. Deleting the Rent Payment.

Prerequisites

You will need to below dependencies for running this application:

  1. install node.js
  2. docker-compose

Install dependencies

To install all dependencies run the following command:

npm install

Create the .env file from .env.example

You would need to create a .env file for the application to run. You can directly copy the values from .env.example to a new .env file.

Starting application

Finally you can start the Rent Payment History Application server:

npm run start

This would be running based on docker-compose. So please install the docker-compose before running this. This would take some time, since it would build the relevant dockers and start the application. This application is based on GraphQL. Hence you can either go to the playground

Or you can Run in Postman

The export is also provided in the repository

Currently the "Authorization" Token has been set in .env.example to 8xjM8PF9XC7KVUQ. So you would need to pass this as a header:

{"Authorization": "8xjM8PF9XC7KVUQ"}

Running Tests

You can run the tests with command:

npm run test

You can also see the test coverage using:

npm run test:coverage

I have tried to write tests to cover the Logical parts.

Choices & Rationales

Please find the choices and rationales here

About

Gives an API to store and get the Rent Payment history of the tenants

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published