0.2.652 • Published 5 years ago
turingarena-server v0.2.652
Turingarena
A collection of libraries and tools to create programming challenges and competitions.
Getting started
- Make sure to have (a recent version of) Node and NPM installed and in
PATH
. - To install dependencies, run:
( cd server/ ; npm ci )
( cd web/ ; npm ci )
- Import the example contest with:
( cd server/ ; npm run cli -- import ../examples/example-contest/ )
- The
start.sh
scripts creates atmux
sessions with all the commands needed to develop running in parallel. Warning: can impact the use of CPU and RAM. Either use the script or inspect the scripts inweb/package.json
andserver/package.json
and run them individually as needed. To use the script, run:
./start.sh
- TODO: running the server in production
Using Docker
You can run this application with Docker, to have a system ready to use, that you can also use on macOS or Windows.
- Build the Docker container (at this point we don't provide prebuilt ones)
docker build . -t turingarena:turingarena
It will probably take a few minutes, so go to drink a cofee while the system build everything.
- Start the server like this
docker run --privileged -it -p 3000:3000 -v $PWD/server:/data turingarena:turingarena serve
Of course change the port or the working directory (/data) as you wish. It's important to use the --privileged
option,
otherwise the sandbox will not work. You may need root privileges on your system to use that.
0.2.652
5 years ago
0.2.651
5 years ago
0.2.650
5 years ago
0.2.649
5 years ago
0.2.648
5 years ago
0.2.645
5 years ago
0.2.643
5 years ago
0.2.642
5 years ago
0.2.641
5 years ago
0.2.638
5 years ago
0.2.637
5 years ago
0.2.636
5 years ago
0.2.635
5 years ago
0.2.634
5 years ago
0.2.633
5 years ago
0.2.632
5 years ago
0.1.2
5 years ago
0.1.0
5 years ago