Giter Club home page Giter Club logo

cl-todo-mvc's Introduction

cl-todo-mvc

This demos how you can setup all the basic building blocks you need to write a web app in common lisp.

There's a general lack of documentation on how to get everything set up for web apps, so the motivation behind this is to get people up to speed with everything they need so they can start hacking with common lisp immediately.

Installing quicklisp automatically

You can use this command to install quicklisp automatically and avoid the interactive prompt. This is useful for provisioning.

Download and verify quicklisp from the website:

$ curl -o https://beta.quicklisp.org/release-key.txt
$ gpg --import release-key.txt
$ curl -O https://beta.quicklisp.org/quicklisp.lisp
$ curl -O https://beta.quicklisp.org/quicklisp.lisp.asc
$ gpg --verify quicklisp.lisp.asc quicklisp.lisp

And then run:

$ sbcl --load quicklisp.lisp \
       --eval '(quicklisp-quickstart:install)' \
       --eval '(ql::without-prompting (ql:add-to-init-file))' \
       --eval '(uiop:quit)'

Load the site from the CLI

Make sure that the project is discoverable by ASDF. The quick and dirty way:

$ ln -s ~/absolute/path/to/this/project ~/common-lisp/mysite

And then run:

$ sbcl --eval '(ql:quickload :mysite)' --eval '(mysite:main)'

Note: Because this is a detached instance of the program, you'll need to use swank in conjunction with this command (see code). If you don't then you'll lose one of the biggest value propositions of common lisp: excellent debugging facilities and fault tolerance via the conditions and restarts system!

cl-todo-mvc's People

Contributors

risto-stevcev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jgarte

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.