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:8000, 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)Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.
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)
Licensed under the MIT License.
Currently we have a travis build for deploying the master branch onto gh-pages branch.
For every PR we build and deploy previews on Netlify: