luyanakat / booking-app

Booking web using Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Booking App

A booking-hotel website to making reservations.

Temporarily deploy on: Ngrok (I'm poor)

Admin Account: admin@admin.com

Password: admin

web

Build and Run Project

Create database

Firstly, because the program uses Postgresql to store user data, we need to create and run the database

  • Next, we need to create a database named “bookings" with the following comand:

    CREATE DATABASE bookings;
  • Install soda-cli to run migration:

    go install github.com/gobuffalo/pop/v6/soda@latest

  • Run soda migrate with terminal in project-folder

  • All the needed tables & constrains now created

db

Run locally

  • Edit .env

  • Simple run run.bat on windows or run.sh on linux, make sure you executable run.sh on linux by using chmod +x

App will run in localhost:3000

About

Booking web using Golang


Languages

Language:CSS 48.7%Language:HTML 33.7%Language:Go 8.2%Language:SCSS 6.1%Language:JavaScript 3.3%Language:Batchfile 0.0%Language:Shell 0.0%