GithubHelp home page GithubHelp logo

deadcyph3r / mhacks-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mhacks/mhacks-web

0.0 1.0 0.0 8.54 MB

The official MHacks frontend and backend

Home Page: https://mhacks.org

License: GNU General Public License v3.0

JavaScript 94.95% HTML 4.72% Shell 0.14% Dockerfile 0.03% CSS 0.17%

mhacks-web's Introduction

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

mhacks-web's People

Contributors

antoniomika avatar konnork avatar andrewboland avatar roball24 avatar carsonhoffman avatar mmontori1 avatar sbeinlich avatar sigmanzero avatar shashankmurching avatar jeffchang5 avatar tarungog avatar dependabot[bot] avatar justinyangusa avatar cooltoast avatar inishchith avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.