backend

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2018 License: MIT

README

Backend

REST API for table reservation

Created to avoid issue with CORS, which appears with axios in VueJS Apps.

Development

Compile source code

$> go build -o main src/*.go

Run server

$> ./main

Usage

Build and deploy using docker.

See API documentation for more information.

Example with httppie.

$> http GET http://localhost:8080/reservations
[
    {
        "duration": 120,
        "email": "johndoe@example.com",
        "full_name": "John Doe",
        "guests": 5,
        "id": 1,
        "phone": "+380123456789",
        "state": "created",
        "table_id": 1,
        "time": "2019-11-25T23:50:00Z"
    }
]

License

Project released under the terms of the MIT license.

Directories

Path Synopsis
src
api
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL