Git Product home page Git Product logo

snellen's Introduction

Setting up

  • Declare the base directory

    export HUNT2020_BASE=<the directory>

  • Install Python 3

    Linux: apt-get install python3.7

    Mac: brew install python3

  • Install the Python 3 libraries

    Linux: apt-get install python3-bs4 python3-bcrypt python3-html5lib python3-tornado python3-pycurl

    Mac: pip3 install bs4 bcrypt html5lib tornado python-dateutil

  • Download and symlink closure and closure-compiler in external

    Here is one such procedure:

    1. Download (and unzip) the 20190301 closure library here.

    2. Download (and unzip) the 20190301 closure compiler here.

    3. Symlink them with something like:

    cd $HUNT2020_BASE/snellen

    mkdir -p external

    ln -sf /path/to/closure-compiler-v20190301.jar external/closure-compiler.jar

    ln -sf /path/to/closure-library-20190301/closure external/

  • Run the recompile script

    scripts/recompile.sh

  • Install nginx

    Linux: apt-get install nginx

    Mac: brew install nginx

  • Install the nginx config file

    Linux: Copy the config/snellen file to /etc/nginx/sites-available, and then create a symlink to it from /etc/nginx/sites-enabled.

    Mac: Copy the config/snellen file into /usr/local/etc/nginx/servers/.

    In both cases, be sure that any of the static paths in the config file have been updated to match your environment. Also, if you already have nginx installed for other purposes, remove the "default server" from the "listen" lines and uncomment the server_name directive.

  • Clone the test_event_src and test_event repos. This should go into directories parallel to the snellen source directory, with $HUNT2020_BASE as the parent:

    /some/path/to/snellen
    /some/path/to/test_event
    /some/path/to/test_event_src
    

    test_event is created from test_event_src by running the preprocess_* scripts in snellen/tools on the source config files and puzzle zips in test_event_src. For convenience you can just clone the prebuild `test_event' repo instead.

    TODO(dougz): document how to build test_event from test_event_src

Running the tests

scripts/tests.sh

Running the server

sudo nginx (sudo needed to listen on port 80)

cd $HUNT2020_BASE/..
./snellen/scripts/run.sh

snellen's People

Contributors

dougz avatar ubragg avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar Eric Prestemon avatar  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.