Skip to content

larago-go/larago

Repository files navigation


Logo

LARAGO

Structure-inspired laravel written in langue Go
Useful links and documents »

Gin framework · ORM GORM · MongoDB Crud · Casbin Role

Table of Contents

Architecture

Architecture

About The Larago

Product Name Screen Shot

Structure-inspired laravel written in langue Go. The classic structure of the MVC with the implementation of basic authorization and a role management system

Specification

Supports data bases mysql, postgres, sqlite, sqlserver and mongoDB. Session storage cookie, memcache and redis.

Under the hood:

  • Gin framework - heart of the project (route, middleware, html template and other)
  • ORM GORM - the fantastic ORM library for Golang (Supports data bases mysql, postgres, sqlite, sqlserver and crud)
  • MongoDB - MongoDB (Supports data bases mongoDB and crud) see https://github.com/larago-go/larago-mongodb
  • Casbin - An authorization library that supports access control models like ACL, RBAC, ABAC for Golang

Getting Started

you need Golang 1.19, To get a local copy up and running follow these simple steps.

Installation

  1. Clone the repository to the src/ folder of your directory $GOPATH: https://golang.org/doc/gopath_code.html
git clone https://github.com/larago-go/larago.git
  1. Install NPM packages
npm install

and

npm run build
  1. Rename the file .env.example
mv .env.example .env
  1. Сreate a database by default this is mysql(when creating use utf8mb4), you can change it by uncomplexing the necessary values in the files /config/Database.go and /config/CasbinRole.go

  2. configure the file .env

  3. inside your project run the command

go mod tidy | if necessary
go run main.go
  1. go to address
http://localhost:8080/

enjoy!

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Project Link: https://github.com/larago-go/larago Author Link: https://github.com/GuzhavinAleksey