Code Monkey home page Code Monkey logo

golara-boilerplate's Introduction

GOLARA Boilerplate

Golang project that can connect to laravel with passport library

It comes pre-configured with :

  1. Gin Gonic Router (https://github.com/gin-gonic/gin)
  2. JWT-GO (https://github.com/dgrijalva/jwt-go)
  3. Viper (https://github.com/spf13/viper)
  4. Cobra (https://github.com/spf13/cobra)
  5. Testify (https://github.com/stretchr/testify)

Setup

Use this command to install the blueprint

go get github.com/rifqiakrm/golara-boilerplate

or manually clone the repo and then run go run main.go.

Quick Note

Before you start the main service, you may want to set your environtment variables. You can choose it on the config, fill the env key and then set the env path file on cmd/root.go

rootCMD.PersistentFlags().StringVar(&cfgFile, "configs", "configs/config.{the_choosen_env}.toml", "configs file (example is $HOME/configs.toml)")

Good ol oauth-public.key and oauth-private.key

To make this golang project can connect the token from laravel passport you have to copy the oauth-private.key and oauth-public.key from your laravel project and then paste it to config/rsa-key

Step by step deploying to server?

Thanks to the internet and Tabvn, you can follow this guide to deploy your application to the server

https://medium.com/@tabvn/deploy-golang-application-on-digital-ocean-server-ubuntu-16-04-b7bf5340ccd9

golara-boilerplate's People

Contributors

rifqiakrm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.