Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hirsch88/go-trophy-server
https://github.com/hirsch88/go-trophy-server
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hirsch88/go-trophy-server
- Owner: hirsch88
- License: mit
- Created: 2019-05-23T18:47:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-25T07:29:41.000Z (over 5 years ago)
- Last Synced: 2024-10-16T21:08:08.240Z (about 1 month ago)
- Language: Go
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :trophy: Go-Trophy Server [![CircleCI](https://circleci.com/gh/hirsch88/go-trophy-server.svg?style=svg)](https://circleci.com/gh/hirsch88/go-trophy-server)
## ❯ Why
TODO
## ❯ 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)