Skip to content
This repository has been archived by the owner on Apr 23, 2022. It is now read-only.

Commit

Permalink
Open sourcing of Backpulse's core
Browse files Browse the repository at this point in the history
  • Loading branch information
aureleoules committed Apr 3, 2019
0 parents commit c6f61db
Show file tree
Hide file tree
Showing 82 changed files with 6,131 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
vendor/
*.exe
config.json
backpulse.json
google_credentials.json
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
stages:
- deploy

production:
stage: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=backpulse --api-key=$HEROKU_API_KEY
environment:
name: Production
url: https://backpulse.herokuapp.com/
only:
- master
when: always
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:alpine

ADD https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64 /usr/bin/dep
RUN chmod +x /usr/bin/dep

RUN apk add --no-cache git

RUN mkdir /go/src/github.com/
RUN mkdir /go/src/github.com/aureleoules
RUN mkdir /go/src/github.com/backpulse/core

ADD . /go/src/github.com/backpulse/core

WORKDIR /go/src/github.com/backpulse/core

COPY Gopkg.toml Gopkg.lock ./
RUN dep ensure --vendor-only

RUN go build -o main .

CMD ["./main"]
229 changes: 229 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true

[metadata.heroku]
root-package = "github.com/backpulse/core"
go-version = "go1.10.3"

[[constraint]]
name = "github.com/asaskevich/govalidator"
version = "9.0.0"

[[constraint]]
branch = "master"
name = "github.com/auth0/go-jwt-middleware"

[[constraint]]
name = "github.com/dgrijalva/jwt-go"
version = "3.2.0"

[[constraint]]
name = "github.com/gorilla/mux"
version = "1.6.2"

[[constraint]]
name = "github.com/rs/cors"
version = "1.6.0"

[[constraint]]
name = "github.com/sirupsen/logrus"
version = "1.3.0"

[[constraint]]
name = "github.com/teris-io/shortid"
version = "1.0.0"

[[constraint]]
name = "github.com/urfave/negroni"
version = "1.0.0"

[[constraint]]
branch = "master"
name = "golang.org/x/crypto"

[[constraint]]
name = "gopkg.in/gomail.v2"
branch = "v2"

[[constraint]]
branch = "v2"
name = "gopkg.in/mgo.v2"

[prune]
go-tests = true
unused-packages = true
9 changes: 9 additions & 0 deletions config.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"URI": "mongodb://...",
"Database": "-",
"Secret": "-",
"GmailAddress": "-",
"GmailPassword": "-",
"StripeKey": "-",
"BucketName": "-"
}
Loading

0 comments on commit c6f61db

Please sign in to comment.