GithubHelp home page GithubHelp logo

go-cleanapi's Introduction

go-cleanapi

This is a REST API template project, based on Uncle's Bob Clean Architecture principles, using go fiber as rest server package alongside another complementary packages for middleware and utilities.

The project contain different packages based on the layers of the consulted literature.

Principal unit tests can be found, as well as CI implementation with docker and GitHub actions.

Run

Use the go command go to run the project locally.

go run main.go -p <port_flag_value> -v -p <version_flag_value>

Principal commands

# test with coverage and save in file
go test ./... -coverprofile=coverage.out -coverpkg=./... && go tool cover -func=coverage.out

# export go path env
export PATH=$PATH:$(go env GOPATH)/bin

# runs golangci linter
golangci-lint run

# runs swagger for the endpoints
swag init

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

go-cleanapi's People

Contributors

dall06 avatar

Stargazers

David Minkovski avatar Vishal Nimbalkar avatar  avatar Prima Syams F avatar Siyovush avatar Vien.Beos avatar Kyle Kirk avatar Ömer Çengel avatar Towhid Khan avatar Filipe avatar Sapan Patibandha avatar Bruno Quindeler avatar  avatar Walleks R. Miranda avatar Rodrigo avatar Sohel Mia avatar Emirhan Doğandemir avatar Manasseh Omachonu avatar Fbedir avatar Iss M avatar Michael Umeokoli avatar Fadhil Radhian avatar Juan Gadiel Rosado Colon avatar Shamuhammet avatar

Watchers

David Minkovski avatar  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.