Sign inSign up

remotestate/precium-server

By remotestate

•Updated about 4 years ago

Image
0

100K+

remotestate/precium-server repository overview

⁠Precium

Hotel Revenue Management System

⁠To run:

make run

⁠To build:

make build

⁠File Structure:

api

This directory contains two sub-directories:handlers and routes

1. handlers: It contains all the handlers for the APIs in this project 2. routes: It contains routes to all the handlers of the API

bin

This directory contains the binary of the Project and other project related binaries

calculation

This directory contains the files that are used to do the price calculation using Multipliers

cmd

This directory contains the entrypoint file of the project. i.e. `main.go`

db

This directory contains files related to database e.g. migrations

global

This directory contains the files that can be accessed from all over the project

middlewares

This directory contains middlewares handlers e.g. The Handler for Authentication used for creating session

models

This directory contains the database models for different relations(tables)

util

This directory contains all the utility files of the project. e.g. Environment files

⁠To Deploy Precium Docker Container:

To Build Docker image

⁠`docker build -t remotestate/precium-server -f Dockerfile .`

To Run Docker Container

⁠`docker run -d --name precium-server -p 80:8091 -v ${PWD}/.env:/.env --restart always remotestate/precium-server`

Tag summary

Content type

Image

Digest

sha256:ea6260477…

Size

11.1 MB

Last updated

about 4 years ago

docker pull remotestate/precium-server:ece1e39