LARAGO
Structure-inspired laravel written in langue Go
Useful links and documents »
Gin framework
·
ORM GORM
·
MongoDB Crud
·
Casbin Role
Table of Contents
Architecture
About The Larago
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
- 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
- Install NPM packages
npm install
and
npm run build
- Rename the file .env.example
mv .env.example .env
-
С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
-
configure the file .env
- inside your project run the command
go mod tidy | if necessary go run main.go
- 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