VandyHacks / VHF2018-prereg

Landing page for VandyHacks Fall 2018

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VandyHacks 2018 landing page

Architecture

In prod, an express server acts as both an HTTP API endpoint server AND serves static files from /dist (webpack output).

Installing

npm install
npm install --only=dev

Prod

npm run prod    # builds files
npm start       # starts server

Create a .env file and add:

MC_INSTANCE_ID = {region/instance}
MC_LIST_ID = {list id}
MC_API_KEY = {api key}
MG_PUBLIC_KEY = {mailgun public api key}
SENTRY_URL = {sentry url}

Configuring heroku to run with Cloudflare DNS: https://support.cloudflare.com/hc/en-us/articles/205893698-Configure-Cloudflare-and-Heroku-over-HTTPS

Dev

Running:

npm run dev     # starts webpack dev server, with hot reload

### NOTE: todo: proxy webpack-dev-server to our own server?
### The webpack-dev-server doesn't write to disk. It serves the result from memory.

Linting:

npm run lint

Check for outdated deps:

npm outdated

Disclaimer: recycled and updated from last year.

About

Landing page for VandyHacks Fall 2018


Languages

Language:CSS 37.0%Language:Vue 29.9%Language:JavaScript 24.8%Language:HTML 8.3%