https://github.com/suyashkumar/go-starter
A Golang starter web service with RESTful API, SSL, and static frontend serving
https://github.com/suyashkumar/go-starter
go golang scaffold server starter-kit web web-app web-server web-service
Last synced: 7 months ago
JSON representation
A Golang starter web service with RESTful API, SSL, and static frontend serving
- Host: GitHub
- URL: https://github.com/suyashkumar/go-starter
- Owner: suyashkumar
- Created: 2017-04-17T06:08:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-11T03:44:03.000Z (over 7 years ago)
- Last Synced: 2025-05-12T14:12:45.557Z (9 months ago)
- Topics: go, golang, scaffold, server, starter-kit, web, web-app, web-server, web-service
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-starter
This repository is a barebones golang web service scaffold that sets up routes, SSL, static file serving, and a global pooled mysql database connection. This is still in progress!
## Initial Installation
Since Golang uses the directory structure of your project for import/build paths, to use this code all import instances with "github.com/suyashkumar/go-starter" will have to be replaced with your import path. A script is provided to automatically do this for you.
1. `git clone https://github.com/suyashkumar/go-starter `
2. `cd `
3. `./install ` You must supply the go import path for your project. The current path is simply "github.com/suyashkumar/go-starter" but yours might be "github.com/bob/hello-world" if your project lives in `$GOPATH/src/github.com/bob/hello-world`.
4. `dep ensure` to install dependencies (or just run `make` to build).
5. (Optional) you may want to `rm -rf .git` and `git init` your new git repo from scratch.
## General Usage
* `make` to run tests and build your project
* `make release` to build win/linux/darwin binaries of your project
* `make test` to just run all tests in the project
* Docker configuration coming soon!