/vehicle-tax-go

Based on real figures from GRA this API calculates and provides information of import duties and tax on cars

Primary LanguageGo

Vehicle Tax

Provides basic tax/duty information about types and categories of vehicles you can import into the country. Also calculates a vehicles import duty/tax. This is based on real information provided by the GRA Customs Ghana

ACT 891 CUSTOMS ACT, 2015

🚀 Preriquisits

  • Docker
  • Internet connection
  • Docker Compose

🚀 How To Test

Find attached postman collections name Vehicle Import Duty.postman_collection.json Extract zip into Default bash directory. In a separate terminal window (2 terminals) RUN the following commads:

Terminal

cd vehicle-tax-go

Open Visual studio and run the project or run:

go run main.go

How to Use Search And Sort on /api/Vehicle/TaxInformation/SearchSort

Type in your Search or sort parameter into the searchBy{} or sortBy{} eg. searchBy {"typeName": "ambulance"} sortBy {"importDuty": "asc"} (either "asc",ascending or "desc", descending)

List of Searchable Parametes

  • categoryDescription
  • typeName
  • typeDescription
  • categoryName
  • importduty"
  • vat
  • nhil,
  • getfundlevy,
  • aulevy
  • ecowaslevy
  • eximlevy
  • examlevy
  • processingfee
  • specialimportlevy

List of Sortable Parametes

  • importduty"
  • vat
  • nhil,
  • getfundlevy,
  • aulevy
  • ecowaslevy
  • eximlevy
  • examlevy
  • processingfee
  • specialimportlevy

Relevant commands (must cd into project directory)

Run Migrations run the following on first application startup

go run main.go migrate

-Migrations (database scripts) can be found in the migration directory within project directory

  • Migration are written in raw sql

Point to note

Make sure application are run in the specified ports in the .env file

  • To build Main App from doccker compose, uncomment configurations in docker-compose.yml file