hackerbook

module
v0.0.0-...-755735c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2019 License: MIT

README

SoftSecOblig2

Initial setup

  • Make sure you have a working go environment of version 1.11 or higher:
    • To do this you can follow this guide
  • Download go dep
  • Do "go get -u gitlab.com/avokadoen/hackerbook/..."
  • Run dep ensure in root of repo directory
  • Fill the values of the .envtmpl to your db information. we used mlab, but you could host a local mongodb for local hosting
  • For Captcha to work on registration page, you have to register on Google's reCaptcha admin page, and update to your public data-sitekey in the signup.html (as this is not done through environment for now)

How to host locally:

  • After doing the initial setup do "go run ./cmd/forum/" in root folder

How to host on heroku:

  • Make sure you have the heroku CLI set up by following this guide
  • With a working CLI you can run "heroku create"
  • For each variable in your .env file you have to do "heroku config:set variablename=value". For more information follow this guide
  • Then do "git push heroku master"
  • If all your variable are defined correctly according to your mongodb then you can run "heroku open"

Running application

Feel free to go to our heroku hosted application at: https://hackerbook.herokuapp.com/

documentation

You can visit godoc to read our documentation

Directories

Path Synopsis
cmd
lib

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL