This project is a basic starting point for building a website in golang without frameworks, but with small packages for each functionallity.
- Middleware with negroni
- Template system with pongo2
- Routing with gorilla mux
- Sessions gorilla sessions
- Google auth
The app is configured with the following environment variables. In order to obtain google client: id, secret and redirect url, you'll need to viist your developer console
- GOOGLE_CLIENT_ID=000000000000-00000000000000000000000000000000.apps.googleusercontent.com
- GOOGLE_CLIENT_SECRET=000000000000000000000000
- GOOGLE_CLIENT_REDIRECT=http://localhost:3000/callback
- SGW_PORT
Port where the application will listen for connection, defaults to
3000
- SGW_SESSION
Session name, defaults to
sgw