Coder Social home page Coder Social logo

go-starter-project's Introduction

Go-Starter-Project

Template of a generic project written in GO Go CodeQL Build Status codecov Go Report Card Maintainability

The project uses Echo

For reading the .env file is used gotenv

Functionality ๐Ÿน

  • Definition of controllers
  • Definition of controllers GET and POST, in any case it is possible to define further methods
  • Data manipulation system retrieved from database MYSQL
  • Timed remote data recovery system
  • Queue request system
  • Configuration cache system via .env file
  • Database migration system

Installation

  • Clone or download the project in your own GOPATH
  • Download all dependecies with
go get -d ./...
  • Build the application
go build main.go
  • Ready to Go!

Configuration

In the root directory is present a .env.sample

export APP_NAME="Go-Starter-Project"
export STRING_CONNECTION="root:root@tcp(127.0.0.1:3306)/test?parseTime=true"
export APP_PORT=:8888
export USER_TIME_TO_REFRESH=30

Copy and rename in .env and fill with whatever you like

Useful commands

To interact with the application you need to FIRE!

Use the following command:

./Go-Starter-Project -fire

This will show the following message

commands:
  -fire go!         -> start the Server 
  -fire go-migrate  -> migrate database 
  -fire go-rollback -> rollback database 
  -fire go-config   -> show the current environment 

go-starter-project's People

Contributors

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