go-book-rental-be

command module
v0.0.0-...-d9aeb59 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 10 Imported by: 0

README

GO: Book Rental API Service

( GIN Gorm )


Basic API Service (Book Rental) using Golang

Prerequisites

  • go v1.17.5 (tested & develop on this version)
  • MySQL
  • familiar with Gin & Gorm

Feature

How to use it

clone this repo with https / ssh / github cli

git clone https://github.com/fahmidyt/go-book-rental-be.git

After cloning this repo, make sure you have duplicated the .env.example file to .env, don't let the .env.example file be deleted or renamed.

Install

Run go install

Run Application

Makesure mysql database and .env configuration all are correct. after that, run the application

go run main.go

app will start & gorm will migrate automaticaly into the selected database (note: only structre)

Environment

you could change ENV into "PRODUCTION" when the app is about to run in released mode and you also could change PORT to your desire.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src
db

Jump to

Keyboard shortcuts

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