Gobook is a golang boilerplate with web framework Gin & Gorm ORM.

Related tags

Templates gobook
Overview

Gobook

Gobook is a golang boilerplate with web framework Gin & Gorm ORM.

Features:

  • MVC Pattern
  • Login, Register, Logout & Profile System
  • Middleware System with JWT and UniqueKey
  • Paginations Request
  • Example Books CRUD
  • Support with MySQL
  • Validator System
  • Relation Has One
  • Env Configurations
  • Helper Command
  • ORM Features
  • Auto Generated Code
  • Support MySQL & PostgreSQL

Installing

  1. Setup gobook bash using command
wget https://leeyurani.com/gobook.sh
chmod +x gobook.sh
./gobook.sh setup
alias gobook='$HOME/gobook.sh'
  1. Make sure your GOPATH and GOROOT already defined. This is an example of my path:
export GOROOT=/usr/local/go
export GOPATH=/Volumes/YURANI/Software\ Development/Golang
export PATH=$PATH:$GOROOT/bin:$GOPATH

GOROOT is the place where you install the golang software, and GOPATH is the place your golang project stored

  1. Install required library
gobook install
  1. Setup your .env Database Credentials
  2. Migrate your model using command
gobook migrate

How To Add New Library

gobook install <packagename>

Example command

gobook install github.com/google/uuid

How To Add New Model

  1. Use this following command to make a new model
gobook make model <name>
  1. Migrate your database using command
gobook migrate

How To Add New Controller

  1. Use this following command to make a new controller
gobook make controller <name>

Database Setup

We use .env file to keep the configurations, just open the .env file and edit your database credentials here

Using MySQL

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USERNAME=root
DB_PASSWORD=password
DB_NAME=gobook

Using PostgreSQL

DB_CONNECTION=postgres
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USERNAME=postgres
DB_PASSWORD=password
DB_NAME=gobook

Commands

Start server using

gobook start

Migrate Database

gobook migrate

Install Required Package

gobook install <packagename>

Make New Controller

gobook make controller <name>

Make New Model

gobook make model <name>

Show Help

gobook help

Postman Collection

Check this collection if you want to see the example requests Gobook Collection

You might also like...

A flutter boilerplate project containing bloc, pedantic, hive, easy_translations and more!

A flutter boilerplate project containing bloc, pedantic, hive, easy_translations and more!

Flutter Production Boilerplate A flutter project containing bloc, flutter_lints, hive, easy_translations and more! This repository is the starting poi

Dec 26, 2022

This repo is a boilerplate to create flutter application easily. It is based on **GetX**.

This repo is a boilerplate to create flutter application easily. It is based on **GetX**.

flutter-app boilerplate This repo is a boilerplate to create flutter application easily. It is based on GetX. More info about GetX here. The app has b

Dec 3, 2022

Awesome Flutter extensions to remove boilerplate

Awesome Flutter Extensions Awesome flutter extensions to remove boilerplate Installation Install using the Terminal: flutter pub add awesome_flutter_e

Aug 20, 2022

Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file folder.

Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file folder.

Flutter UI Boilerplate "Sharing for fun" Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file f

Dec 1, 2022

Boilerplate for Flutter + GetX MVVM

flutter_getx_boilerplate A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you

May 31, 2022

A boilerplate project created in flutter using MobX and Provider

Boilerplate Project A boilerplate project created in flutter using MobX and Provider. Boilerplate supports both web and mobile, clone the appropriate

Jan 20, 2022

A boilerplate project for Flutter using RiverPod, Dio, auto_route

Flutter Boilerplate A boilerplate project for Flutter using RiverPod, Dio, auto_route, Freezed and generated with very_good_cli. This is a very simple

Dec 9, 2022

A basic boilerplate template for starting a Flutter GetX project. GetX, Dio, MVVM, get CLI, Localization, Pagination etc are implemented.

A basic boilerplate template for starting a Flutter GetX project. GetX, Dio, MVVM, get CLI, Localization, Pagination etc are implemented.

Flutter GetX Template (GetX, Dio, MVVM) This Flutter Template using GetX package for State management, routing and Dependency Injection (bindings). We

Jan 9, 2023

Flutter boilerplate

boilerpalta Flutter boilerplate project Getting Started This project is a starting boilerplate based on the official project skeleton from flutter 2.5

Nov 25, 2021
Owner
Yusril Rapsanjani
Backend & Mobile Developer | Playing in Lumen, Laravel & Flutter
Yusril Rapsanjani
Working proof of the Go (golang) server running inside Flutter

flap Working proof of the Go server running inside Flutter Video in action Prerequisites Flutter >2.0 Go >1.16 Build Go server cd go macOS: make maco

Err 28 Dec 17, 2022
Flutter React Golang WebRTC等技术学习笔记

study-notes Flutter React Golang WebRTC等技术学习笔记 学习资源 除了一些文章外,亢老师还精心录制了一些视频教程供大家学习. 国内用户请查看核心系列课程(国内). 海外华人用户请查看核心系列课程(海外), 支持paypal支付.可放心购买 核心系列课程(国内)

亢少军 15 Nov 11, 2022
sqfEntity ORM for Flutter SQLite (sqflite)

SqfEntity ORM for Flutter/Dart lets you build and execute SQL commands on SQLite database easily and quickly with the help of fluent methods similar to .Net Entity Framework. SqfEntity also generates add/edit forms with validations and special controls (DropDown List, DateTime pickers, Checkboxes.. etc) for your table.

Hüseyin Tokpınar 347 Jan 2, 2023
Flutter boilerplate: support Android, iOS, Web, Mac, Linux, Window with bloc(cubit) state management

Flutter boilerplate: support Android, iOS, Web, Mac, Linux, Window with bloc(cubit) state management, dynamic theme, localization, environment (.env), logger, navigation (go_router), responsiveness (mobile, tablet, desktop), lint, unit/widget/integration test and more ...

Bumbii Co., Ltd 34 Dec 29, 2022
Flutter boilerplate: support Android, iOS, Web, Mac, Linux, Window with bloc(cubit)

Flutter boilerplate: support Android, iOS, Web, Mac, Linux, Window with bloc(cubit) state management, dynamic theme, localization, environment (.env), logger, navigation (go_router), responsiveness (mobile, tablet, desktop), lint, and unit/integration test.

Bumbii Co., Ltd 34 Dec 29, 2022
A zero-dependency web framework for writing web apps in plain Dart.

Rad Rad is a frontend framework for creating fast and interactive web apps using Dart. It's inspired from Flutter and shares same programming paradigm

null 70 Dec 13, 2022
Intel Corporation 238 Dec 24, 2022
The ROHD Verification Framework is a hardware verification framework built upon ROHD for building testbenches.

ROHD Verification Framework The ROHD Verification Framework (ROHD-VF) is a verification framework built upon the Rapid Open Hardware Development (ROHD

Intel Corporation 18 Dec 20, 2022
Flying Fish is full-stack Dart framework - a semi-opinionated framework for building applications exclusively using Dart and Flutter

Flying Fish is full-stack Dart framework - a semi-opinionated framework for building applications exclusively using Dart and Flutter.

Flutter Fish 3 Dec 27, 2022
A Boilerplate Project which adopts the concept of Clean Architecture and Modularization.

Flutter-Works Boilerplate Table Of Content Overview Getting Started Requirement Setup Setup Firebase Android IOS Change Package Name Running/Debugger

KodingWorks 54 Aug 28, 2022