Skip to content

Rental Car API for management orders, cars, stations and price.

License

Notifications You must be signed in to change notification settings

thiagotrs/rental-car-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚙 Rental Car API

About

Rental Car API for management orders, cars, stations and price.

Technologies

  • Golang
  • Modular Monolith
  • DDD (principles)
  • Clean Architecture (principles)

Run Project

Clone Project

git clone https://github.com/thiagotrs/rental-car-api.git

Database

docker run -d --name db -p 5432:5432 -e POSTGRES_PASSWORD=admin1234 postgres

Migration

cd rental-car-api
go run cmd/migration/main.go -f ./cmd/migration/sql/logistics_db_up.sql
go run cmd/migration/main.go -f ./cmd/migration/sql/pricing_db_up.sql
go run cmd/migration/main.go -f ./cmd/migration/sql/rental_db_up.sql

API

cd rental-car-api
go run cmd/api/main.go

Configuration

Create 'config.yaml' file in the root directory with these variables:

server:
  host: localhost
  port: 4000

database:
  type: postgres
  user: postgres
  pass: admin1234
  host: localhost
  port: 5432
  name: 

URLs

http://localhost:4000/

Author

Thiago Rotondo Sampaio - GitHub / Linkedin / Email

License

This project use MIT license, see the file LICENSE for more details


Develop by Thiago Rotondo Sampaio

About

Rental Car API for management orders, cars, stations and price.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published