The Hostel Server is the serving component of the Hostel Management Software.
It implements the REST API of the Server and offers the main components that interact with the database.
core package contains the necessary components:
models.go contains the basic structs and objects
used for CRUD operationssearch_params.go represent the search criteriaservice.go is the implementation of the REST APImain.go is the entrypoint of the codeAfter cloning the git repository, run:
$ go build -v ./...
$ go test -v ./...
To fetch the latest dev Docker image of the hostel server, run:
$ docker pull ggian/hostel-server:dev
If you have a MariaDB setup, you can run the server with the following command:
$ docker run -e DB_HOST=$DB_HOST -e DB_PASSWORD=$DB_PASSWORD -e DB_USER=$DB_USER -p 5000:5000 -d ggian/hostel-server:dev
where you have to provide the following parameters:
DB_HOSTDB_PASSWORDDB_USERAlternatively, you can enjoy a single-click installation through running:
$ docker-compose up -d
inside the _docker directory.
Content type
Image
Digest
Size
343.5 MB
Last updated
over 5 years ago
docker pull ggian/hostel-server:dev