Source code for the HackSurrey Mk2 hackathon site | 9-10th February 2019
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
components - Fixed stuff 🔨 Nov 5, 2018
public
resources
stylesheets
.babelrc
.gitignore
.travis.yml
LICENSE
README.md
package-lock.json - Fixed stuff 🔨 Nov 5, 2018
package.json
postcss.config.js Initial commit Aug 15, 2018
webpack.config.js Initial commit Aug 15, 2018

README.md



Build Status license GitHub top language Twitter Follow


Introduction

Before playing around with this website you need to understand how everything fits together. The website itself is a single Vue application. The Vue application is loaded in the app/application.js file and the app/Application.vue component is used to render the application. Webpack is used to bundle everything together (the how is defined in the webpack.config.js file) as well as to create a development server with livereload (using the npm run dev command). Deployment is very simple: everything inside the public folder after npm run build has been executed needs to be published. In our case, this is done by using Travis CI and GitHub Pages.

Serving Files Locally (during Development)

  1. Clone this repository using git:
    git clone https://github.com/hacksurrey/mk2.git
    
  2. Install all Node dependencies using NPM (whilst I adore Yarn, I chose not to use it for this project):
    npm install
    
  3. Start the development server using Node and NPM:
    npm run dev
    
  4. That's it! If everything has been done correctly, Node has now started a development server (usually on localhost:8080) and has also opened your browser to this location. Have fun and don't break anything!