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

mhacks/mhacks-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

72b9cf9 · Feb 6, 2023
Mar 28, 2017
Aug 3, 2022
Apr 15, 2017
Aug 3, 2019
Sep 17, 2021
Sep 8, 2019
Nov 27, 2022
Aug 6, 2018
Feb 6, 2023
Aug 2, 2020
Aug 3, 2019
Aug 3, 2019
Aug 3, 2019
Nov 27, 2022
Jul 30, 2020
Aug 3, 2017
Aug 3, 2017
Oct 1, 2021
Mar 28, 2017
May 16, 2017
Sep 29, 2018
Aug 3, 2019
Oct 1, 2021
Aug 2, 2020
Aug 2, 2020
Sep 28, 2021

Repository files navigation

MHacks Web

Getting up and running

At MHacks, we utilize Docker to containerize our application so that whether you are using linux, macOS, or Windows, you run exactly the same as everyone else. There are a lot of other advantages to docker too. All the dependencies are automatically installed for you, it is great for ease of deployment, it provides good isolation and security, and much more.

  1. Get Docker
  2. Get Docker Compose
  3. Clone this repo: git clone https://github.com/mhacks/mhacks-web
  4. Change directory to the deploy repo: cd mhacks-web/deploy/
  5. Start whatever environment you want
    • Development
      • docker-compose -f development.yml up -d
      • NOTE: Your git repo will be linked to the development environment, so your local changes will be reflected with a container restart
    • Production (You're gonna need some more env data)
      • docker-compose -f production.yml up -d
      • NOTE: This takes care of setting up NGINX AND LetsEncrypt with the appropriate hosts (and autorenewal!).
  6. Access http://localhost:3000 and start developing!

Useful Commands

Seeing container output

This will start the necessary containers and hook you into their output. In addition to being able to see what is happening, you can stop the containers easily by just Ctrl-Cing out of them.

DEBUG=* docker-compose -f development.yml up -d

Working in backend

When working exclusively on backend, you don't want to wait for Webpack to reload the frontend on each save, especially when you haven't changed anything there.

APIWORK=true docker-compose -f development.yml up -d