Giter Site home page Giter Site logo

zorbathut / lw2-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kronusaturn/lw2-viewer

0.0 1.0 0.0 17.27 MB

An alternative frontend for LessWrong 2.0

Home Page: https://www.greaterwrong.com/

License: MIT License

Common Lisp 97.35% NewLisp 2.65%

lw2-viewer's Introduction

lw2-viewer

An alternative frontend for LessWrong 2.0, with a focus on speed and usability.

Installation

Linux/Unix

This is the bare minimum to get the server running. To set up a full Common Lisp development environment, see here

  • Install sbcl and lmdb from apt or using your favorite method.
    e.g. sudo apt install sbcl liblmdb0

  • Install quicklisp
    curl -O https://beta.quicklisp.org/quicklisp.lisp
    sbcl --load quicklisp.lisp --eval '(quicklisp-quickstart:install)' --eval '(ql:add-to-init-file)' --eval '(exit)'

  • Clone required git repositories to the quicklisp local-projects directory. (You can also use symlinks if you want to put them elsewhere.)
    cd ~/quicklisp/local-projects
    git clone https://github.com/kronusaturn/liblmdb.git
    git clone https://github.com/kronusaturn/lmdb.git
    git clone https://github.com/kronusaturn/plump.git
    git clone https://github.com/kronusaturn/lw2-viewer.git

  • Start the server
    cd ~/quicklisp/local-projects/lw2-viewer
    sbcl --eval '(ql:quickload :lw2-viewer)' --eval '(hunchentoot:start (make-instance (quote hunchentoot:easy-acceptor) :port 4242 :document-root "./www/"))'

  • Open http://localhost:4242 in your browser

Mac

Similar to above, but:

  • sbcl and lmdb are available from MacPorts.

  • Make sure to run system updates, using an outdated OS version can cause installation errors.

  • As Mac OS does not support sparse files, the system will create an empty 16 GB file on startup. If you want to reduce disk space usage, before starting the server, copy config-example.lisp to config.lisp and change the line (defparameter *lmdb-mapsize* (expt 2 34)) to, for example, (defparameter *lmdb-mapsize* (expt 2 28))

  • You will need to set the DYLD_LIBRARY_PATH environment variable to the location where liblmdb.dylib is installed, for example export DYLD_LIBRARY_PATH=/opt/local/lib/

lw2-viewer's People

Contributors

kronusaturn avatar achmizs avatar jd-p avatar adiabatic avatar

Watchers

 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.