Structure-inspired laravel written in langue Go
Useful links and documents »
Gin framework
·
MongoDB Crud
·
Casbin Role
Structure-inspired laravel written in langue Go. The classic structure of the MVC with the implementation of basic authorization and a role management system
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)
- MongoDB - MongoDB (Supports data bases mongoDB and crud)
- Casbin - An authorization library that supports access control models like ACL, RBAC, ABAC for Golang
you need Golang 1.19, To get a local copy up and running follow these simple steps.
- 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
-
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!
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/larago-go/larago Author Link: https://github.com/GuzhavinAleksey