Giter Club home page Giter Club logo

saapas's Introduction

Saapas

Example project for Cljs/Om using Boot instead of Lein. Inspired by chestnut.

For now, this is a example project instead of a lein template.

Prerequisites

You should first install Boot. Also you should be running the latest version.

Features

  • Simple Compojure backend
  • Simple Om frontend
  • LESS to write stylesheets
    • boot-less is able to import files from classpath
    • You can add dependency to e.g. bootstrap from webjars to your regular dependencies and then use @import "bootstrap/less/bootstrap.less" on your .less files.
  • dev task starts the whole development workflow
    • Check boot dev --help for options
    • Repl should automatically include cljs middlewares
    • Browser repl included
    • No need to change index.html, resulting unified JS can be loaded like :advanced compiled.
    • Watches for file changes
      • *.less changes trigger less compilation
      • *.cljs changes trigger cljs compilation
    • Live-reloading
      • *.js, *.css, *.html changes send notification to browser throught websocket and browser loads the new files
  • package task creates uberjar
    • Cljs will be compiled using :advanced optimization
    • Uses minified react.js

Usage

To start everything run:

$ boot dev
boot.user=>
# App should now be running, you can use following commands to restart the app
boot.user=> (in-ns 'saapas.main)
saapas.main=> (stop) ; Stop app
saapas.main=> (start) ; Start app
saapas.main=> (reset) ; Stop, reload all namespaces, start

If you want a repl where you can execute commands, you can start a nrepl client which connects to the nrepl server started by the dev task by running

$ boot repl -c

TODO

  • Less compilation and css livereload
  • Production build (uberjar)
  • Tests

saapas's People

Contributors

deraen avatar lgastako avatar

Watchers

John Bellamy 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.