https://github.com/hirsch88/go-micro-framework
A delightful way to building a RESTful API with Go by @hirsch88
https://github.com/hirsch88/go-micro-framework
boilerplate framework go golang realworld-backend rest-api starter-kit
Last synced: about 1 year ago
JSON representation
A delightful way to building a RESTful API with Go by @hirsch88
- Host: GitHub
- URL: https://github.com/hirsch88/go-micro-framework
- Owner: hirsch88
- License: mit
- Created: 2019-05-17T19:09:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T18:47:06.000Z (almost 7 years ago)
- Last Synced: 2025-02-01T18:45:31.011Z (about 1 year ago)
- Topics: boilerplate, framework, go, golang, realworld-backend, rest-api, starter-kit
- Language: Go
- Homepage:
- Size: 175 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :art: Go Micro Framework [](https://travis-ci.org/hirsch88/go-micro-framework)
## ❯ Why
Our main goal with this project is a feature complete server application.
We like you to be focused on your business and not spending hours in project configuration.
Try it!! We are happy to hear your feedback or any kind of new features.
## ❯ Installation
```shell
brew install go
brew install glide
brew install goose
brew install mysql
```
## ❯ Getting Started
First we need to install the dependencies.
```shell
make install
```
To start the server run.
```shell
make run
```
## ❯ Dependency Management
Our dependency management tool is [glide](https://glide.sh/);
### Add Dependency
```shell
glide get github.com/foo/bar
```
### Updating Dependencies
```shell
glide update
```
## ❯ Database Migrations
To manage our database schema we used the library [goose](https://github.com/pressly/goose).
### Run migrations
```shell
make db-migrate
```
### Create a migration
```shell
make db-create-migration name=create_user_table
```
## ❯ Testing
For testing our awesome app we decided to use the toolkit [stretchr/testify](https://github.com/stretchr/testify).
### Create Mocks
To automatically generate the mocks we use [vektra/mockery](https://github.com/vektra/mockery).
The below command example generates the mock files of our interfaces inside the /app folder.
```shell
make mocks
```
## ❯ License
[MIT](/LICENSE)