Skip to content

jdcd/numbers_reservation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number_reservation

This project is a test project for show some programing concepts

This project was build keeping in mind the most important things about Clean Architecture

Run

remember set your env variables to connect to repository, migration/mongo-init-js contains init script for your repository

DB_COLLECTION="collection name"
DB_NAME="db name";
MONGO_URL="mongodb://<yourUser>:<yourPassword>@<yourHost>:"yourPort""

go run cmd/numbers_reservation.go

docker-compose

Run project
    
    docker-compose build
    docker-compose up

Basic Request

Get reservations

curl --location 'http://localhost:8080/v1/reservation'

Create new reservations

curl --location 'http://localhost:8080/v1/reservation' \
--header 'Content-Type: application/json' \
--data '{
    "client_id": "cheems",
    "number": 35
}'

Technologies

About

Knowledge test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published