Giter Site home page Giter Site logo

quizmaster's Introduction

QuizMaster

The virtual machine (hashicorp/precise32) will have the following (relevant) packages installed:

From start:

  • node.js (Latest stable)
  • npm
  • git
  • browserify (watchify)
  • http-server
  • nodemon

Install

Make sure you have the following installed on your system:

Now, do:

  1. Pull (git pull https://github.com/LokeCarlsson/QuizMaster.git) into your existing examination-2 repo. Make sure you are in the root of your repo.

  2. Start the virtual machine using vagrant up (May take 5-10 minutes this first time. (Ignore red command line statements and warnings.)

  3. vagrant ssh to connect to the machine.

In the vagrant terminal (after vagrant ssh)

  1. Make sure you are located in the folder /vagrant/QuizMaster/ at all times.
  2. Do npm run debug. The following will happen:
  • A process will start watching files in the folder source/ for changes. When a change is detected the file will be copied to the debug-folder as follows:
    • source/image/ -> debug/image .jpeg, .jpg, .png, .gif, .svg are copied
    • source/js/app.js -> debug/javascript/build.js app.js and it dependencies are browserified to build.js
    • source/*.html -> debug/*.html .html-files are copied
    • source/css/*.css -> debug/*.css .css-files are copied
  • A webserver is started and if you browse to http://localhost:4000 you will see the html-page debug/index.html.

In the Git-bash or terminal on your local computer

You should have multiple terminals open at the same time. One running the npm run debug in the vagrant-terminal, and one terminal not ssh:ed to vagrant. In the terminal on your local machine you could to tasks like committing and pushing to GitHub.

Local IDE

  1. Start up your IDE (WebStorm) and open a new project pointing to the folder "examination"
  2. Start editing your site in the source-folder. (NEVER EDIT FILES IN THE DEBUG FOLDER.) When you save a change look at the "vagrant terminal". You should see that the files are rebuilt.
  3. Refresh the webpage localhost:4000 and this should reflect your changes.
  4. When you debug your application you should to this in the browser, not in the IDE. A simple method is to write debugger; in your js-source code where you want to stop the debugger and refresh the browser.

quizmaster's People

Contributors

lindehoff avatar loke-dev avatar mtslck avatar thajo avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

todun

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.