Skip to content

Building apps on Go has never been easier, tools for Go

License

Notifications You must be signed in to change notification settings

larago-go/larago-mongodb

Repository files navigation


Logo

LARAGO

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

Gin framework · 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)
  • MongoDB - MongoDB (Supports data bases mongoDB and crud)
  • 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. configure the file .env

  2. 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