ConcurrentBookingSystem

command module
v0.0.0-...-1f33363 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

Todo

Add payment details in ticket

ConcurrentBookingSystem

Concurrent ticket booking system.

Project Description Database model (ERD Diagram)

alt text

Project setup

  • Go requires you to organize your code within a specific workspace directory.
  • The workspace contains three subdirectories: bin, pkg, and src.
  • The source code for your projects should be placed in the src directory.
Create a new directory for your workspace (choose a suitable name) and set the GOPATH environment variable to point to that directory.

export GOPATH="/Users/anmol/GoProjects/"

Create a new project directory:

mkdir -pv $GOPATH/src/github.com/GatorsTigers/ConcurrentBookingSystem

cd $GOPATH/src/github.com/GatorsTigers/ConcurrentBookingSystem

Initialize a Go module:

Go modules are a dependency management system introduced in Go 1.11 to help manage external dependencies.
Initialize a Go module in your project directory.

go mod init github.com/GatorsTigers/ConcurrentBookingSystem

Then clone your repository like:

cd $GOPATH/src/github.com/GatorsTigers/

git clone github.com/GatorsTigers/ConcurrentBookingSystem

Install dependencies like so:

go get -u github.com/gin-gonic/gin

go get -u gorm.io/gorm

go get -u gorm.io/driver/mysql

Dev : Debugging Application in VS CODE

Go to run and debug in the side bar

Click on create a launch.json file

Add below text in the launch.json file

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Package",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "main.go"
        } 
    ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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