Skip to content

Commit 36fc776

Browse files
author
Tenyo Grozev
committed
initial commit
1 parent 5d769cb commit 36fc776

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# https://docs.docker.com/engine/userguide/eng-image/multistage-build/
33
FROM gobuffalo/buffalo:v0.12.7 as builder
44

5-
RUN mkdir -p $GOPATH/src/github.com/YaleSpinup/rds_api
6-
WORKDIR $GOPATH/src/github.com/YaleSpinup/rds_api
5+
RUN mkdir -p $GOPATH/src/github.com/YaleSpinup/rds-api
6+
WORKDIR $GOPATH/src/github.com/YaleSpinup/rds-api
77

88
ADD . .
99
RUN dep ensure

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Yale University
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

actions/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func App() *buffalo.App {
2727
PreWares: []buffalo.PreWare{
2828
cors.Default().Handler,
2929
},
30-
SessionName: "_rds_api_session",
30+
SessionName: "_rdsapi_session",
3131
})
3232
// Automatically redirect to SSL
3333
app.Use(forceSSL())

grifts/init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package grifts
22

33
import (
4-
"github.com/YaleSpinup/rds_api/actions"
4+
"github.com/YaleSpinup/rds-api/actions"
55
"github.com/gobuffalo/buffalo"
66
)
77

main.go

+1-24
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,13 @@ package main
33
import (
44
"log"
55

6-
"github.com/YaleSpinup/rds_api/actions"
6+
"github.com/YaleSpinup/rds-api/actions"
77
)
88

9-
// main is the starting point to your Buffalo application.
10-
// you can feel free and add to this `main` method, change
11-
// what it does, etc...
12-
// All we ask is that, at some point, you make sure to
13-
// call `app.Serve()`, unless you don't want to start your
14-
// application that is. :)
159
func main() {
1610
app := actions.App()
1711
if err := app.Serve(); err != nil {
1812
log.Fatal(err)
1913
}
2014
}
2115

22-
/*
23-
# Notes about `main.go`
24-
25-
## SSL Support
26-
27-
We recommend placing your application behind a proxy, such as
28-
Apache or Nginx and letting them do the SSL heaving lifting
29-
for you. https://gobuffalo.io/en/docs/proxy
30-
31-
## Buffalo Build
32-
33-
When `buffalo build` is run to compile your binary this `main`
34-
function will be at the heart of that binary. It is expected
35-
that your `main` function will start your application using
36-
the `app.Serve()` method.
37-
38-
*/

0 commit comments

Comments
 (0)