This project contains the jscraftcamp.org website and all the setup for the deployment.
Getting started to develop on the website follow those steps
- set up your development environment, see below
- run
npm i
to install all dependencies - run
npm start
which will run the local webserver at localhost:9000, for developing - run
npm test
to run the tests - run
npm run build
to generate all static files and to concatenate all participants files into thedist
directory (in production this will be done by travis)
We offer two ways to install this project, you choose the one you like:
- use you own global nodejs version if installed on your system, or
- setup everything from scratch using nix
If you want to use your (global) nodejs setup, find out which version we require in the [./.travis.yml].
If you don't want to rely on a global nodejs version, but want a reproducible environment, you can use nix as described here.
- Make sure to have nix installed (see nixos.org/nix) and then
cd <project-dir>
- run
nix-shell
and you should have the environment up and running - install all node modules using
npm install
- prove that it works,
npm test
- now you have a shell with a deterministic environment (incl. the right nodejs version)