Skip to content

hackmcgill/hackmcgill

Repository files navigation

McHacks logo

This is the repository for the static landing page for HackMcGill. Code based upon boilerplate here.

Netlify Status

Setup

  1. Make sure you have node and yarn installed.
  2. Run yarn.

Folder structure

📁dist        -- contains production-ready code
📁src         -- source code folder
|--📁js       -- script files
|--📁static   -- static assets (images, fonts, etc.)
|--📁style    -- SCSS style sheets
...

Available scripts

  • yarn build: Builds /src into /dist. Minifies, transpiles, etc.
  • yarn start: Runs a build, then starts the production server from the /dist folder on localhost:8080.
  • yarn start:dev: Starts the development server (with auto-refresh).
  • yarn deploy: Runs a build, commits it, then deploys the /dist folder to the gh-pages branch.
  • yarn lint: Lint scripts.
  • yarn lint:styles: Lint stylesheets.

Contributing

To contribute to the HackMcGill repository, please see our contributing guide.

Deployment

We are using Netlify to compile and host our code automatically. When a PR is created, Netlify will generate preview builds of the site to confirm that everything is working as expected. Once code is merged to master, Netlify will promote that code to production at hackmcgill.com. Netlify also handles the SSL certificate for this site. @krubenok is currently the admin on the Netlify plan.

Domains

The primary domain for this site (hackmcgill.com) is registered and has DNS with Cloudflare. It has CNAME records pointing to mchacks6.netlify.com from www.hackmcgill.com and hackmcgill.com

We also have a secondary domains, hackmcgill.ca and www.hackmcgill.ca pointing to mchacks6.netlify.com via CNAME as above. hackmcgill.ca is registered with Namecheap and the DNS with Cloudflare.