- Set up a standard go environment with something like this: https://medium.com/@AkyunaAkish/setting-up-a-golang-development-environment-mac-os-x-d58e5a7ea24f (should be easy to find instructions for PC)
- Run
go get github.com/tamuhack-org-quack cdinto that ^ directory and run:go get github.com/oxequa/realizego get -d -v golang.org/x/net/htmlgo get -d -v github.com/gorilla/handlersgo get -d -v github.com/gorilla/mux
- Finally, in a seperate terminal window, but in the same directory, run:
-
realize start --run --server --no-config - This should start a server on
http://localhost:8080 - To set up a local version of the database, put this in your .bashrc or .zshrc (talk to jay for credentials):
export MONGO_URL="mongodb://<database-user>:<datababse-password>@ds037165.mlab.com:37165/<database-name>"
- Make sure you have the following dependecies/versions:
node -v: 10+yarn -v: 1.9+
cdinto thefrontend/directory- run
yarn install - run
yarn dev - This should start a server on
http://localhost:3000
- For debugging the project locally, visit
http://localhost:8080. In short, the server serves an html file which references the frontend dev server. You won't have to visit the frontend (webpack) server at all. - Submit a PR for most changes.