Rental Car API for management orders, cars, stations and price.
- Golang
- Modular Monolith
- DDD (principles)
- Clean Architecture (principles)
git clone https://github.com/thiagotrs/rental-car-api.git
docker run -d --name db -p 5432:5432 -e POSTGRES_PASSWORD=admin1234 postgres
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
cd rental-car-api
go run cmd/api/main.go
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:
http://localhost:4000/
Thiago Rotondo Sampaio - GitHub / Linkedin / Email
This project use MIT license, see the file LICENSE for more details
Develop by Thiago Rotondo Sampaio