Golerts
A simple RESTful Notification service written in Go. This will primarily be used with iOS push notifications
Setup
This application is configured to run on Heroku. As such, there are some steps
to follow to get it running in your local.
-
Remove the .git
directory and create a fresh one for your project
$ rm -rf .git
$ git init .
-
Install Heroku Toolbelt:
Via Homebrew:
$ brew install heroku
Or Via Heroku
-
Create your .env file
$ cp env.example .env
-
Update any values in .env
as needed
-
Run the application locally
$ go install && heroku local
Deploying
Assuming you have the proper heroku app setup + git remote
-
Remove vendor
and Godeps
from .gitignore
-
Save and commit dependencies
$ godep save
$ git commit -am "initial import of dependencies for heroku"
-
Deploy
$ git push heroku [BRANCH]:master
Migrations
You can run the migrations an seeds located in the migrates
directory to get your database in the most recent state.
NB: After release, new migrate and seeds files should be created to incremental updates