Skip to content

Tax Service is an API built with Express, PostgreSQL, and TypeScript. It provides endpoints to manage transactions, calculate tax positions, and amend sales.

License

Notifications You must be signed in to change notification settings

imevanc/tax-service

Repository files navigation

Tax Service

Description

Tax Service is an API built with Express, PostgreSQL, and TypeScript. It provides endpoints to manage transactions, calculate tax positions, and amend sales.

Features

  • Ingest transactions
  • Calculate tax positions
  • Amend sales
  • Generate test data

Deployed Version

The deployed version of the API is available on tax-service-render.com.

Installation

  1. Clone the repository:

    git clone https://github.com/imevanc/tax-service.git
    cd tax-service
    
    
  2. Install dependencies:
    npm install

  3. Set up environment variables:

    • Create a .env file in the root directory and add the necessary environment variables.
    • See .local.env
  4. Build the project:
    npm run build

Usage

  1. Development To start the development server with hot-reloading: npm run dev

  2. Production To start the production server: npm run start

The project runs on port 3000.

Swagger UI

You can use open-swagger-ui to see the Swagger file on port 3355 - http://localhost:3355/swagger-doc .

Dependency Management

This project uses Renovate for dependency management.

Database

The database is deployed on render.com and uses PostgreSQL.

Running Tests

The tests run as GitHub Actions.

  1. To run unit tests locally: npm run test:unit
  2. To check TypeScript types: npm run test:type
  3. To run tests with coverage: npm run test:coverage

License

This project is licensed under the MIT License.

About

Tax Service is an API built with Express, PostgreSQL, and TypeScript. It provides endpoints to manage transactions, calculate tax positions, and amend sales.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published