Skip to the content.


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:

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
    
  2. Rename the file .env.example
    mv .env.example .env
    
  3. С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

  4. configure the file .env

  5. inside your project run the command
    go mod tidy | if necessary
    go run main.go
    
  6. 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