Giter VIP home page Giter VIP logo

codeclub-viewer's Introduction

codeclub-viewer

A viewer to display codeclub lessons.

Getting started

First make sure you have node and yarn installed.

Install node

The easiest way is probably to first install nvm or nvm-windows. Then install the version of node specified by the file .nvmrc by executing

nvm install

in the shell.

Install yarn

Install yarn (preferably without node) as instructed on the yarn website.

Clone and start codeclub-viewer

When node and yarn are installed, just type

git clone https://github.com/kodeklubben/codeclub-viewer.git
git clone https://github.com/kodeklubben/oppgaver.git
cd codeclub-viewer
yarn
yarn start

Then open http://localhost:8080

NOTE: If you recently changed versions of node, and you get error messages during yarn start (or yarn build), try deleting the node_modules folder and run yarn again to re-install it.

Redux DevTools

If you want to use Redux DevTools, your best option is to download the Chrome Extension.

Building and serving

If you want to build and serve the website from static files (which is what is done during deploy), try

yarn build
yarn serve

for development mode or

yarn build:prod
yarn serve

for production mode.

Running tests

To run all the tests, run

yarn testall

This will run the three commands yarn eslint, yarn stylelint and yarn test, each of which can be run individually.

Publish website (to beta)

To publish the website to the beta repository, first make sure you have a fork of it. Then make a local clone of the beta fork next to codeclub-viewer and oppgaver (using SSH URL). For example, if your github username is gituser and you have forked the beta repo to this user, and you have a terminal open and you are located in the codeclub-viewer folder, type

cd ..
git clone [email protected]:gituser/beta.git

Now return to the codeclub-viewer folder (cd codeclub-viewer), type

./publish_beta.sh

and follow the instructions. If everything is ok, and you answer y to all the questions, the newly compiled website will be pushed to your beta fork, and (if your username is gituser) you can test the site at

gituser.github.io/beta

If you are satisfied and want to publish the new website to the official beta repo, make a pull request from the gh-pages branch of your beta fork to the gh-pages branch of kodeklubben/beta.

codeclub-viewer's People

Contributors

kristandre avatar skagevang avatar fredaas avatar barnemat avatar agnetedjupvik avatar krskog avatar arve0 avatar linemos avatar mrhansan avatar steinoro 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.