Code Monkey home page Code Monkey logo

mala's Introduction

Mala

Join the chat at https://gitter.im/priyatam/mala

Goal

A reference app and Leiningen template for building SPA in Clojurescript with Garden, Ring, and Om.

Features

  • sane project structure
  • workflows for api, design, and user-interface
  • live reloadable-code and brepl with figwheel
  • static analyzers with kibit and eastwood
  • curated ring middleware
  • curated lein plugins
  • curated cljsjs libraries
  • om-i instrumentation
  • async server with http-kit
  • core.async integration, no ajax
  • visual debugger with prone
  • asset pipeline and tasks in leinigen
  • automatic sourcecode formatting with cljfmt
  • environment variables with environ
  • up to date dependencies!

Quickstart

lein new mala chant
cd chant

The generated src looks like this:

env
├── dev
│  └── repl.cljs
src
├── api
│   ├── db.clj
│   ├── router.clj
│   ├── server.clj
│   └── utils.clj
├── design
│   ├── components.clj
│   ├── layout.clj
│   ├── styles.clj
│   └── typography.clj
└── ui
    ├── client.cljs
    ├── components
    │  ├── hello.cljs
    │  └── typeahead.cljs
    ├── main.cljs
    ├── pages.cljs
    ├── router.cljs
    ├── state.cljs
    ├── types.cljs
    └── utils.cljs

Start figwheel, watch garden, and fire a ring api server for live coding:

lein dev

Open/refresh http://localhost:3449/ for a Cljs brepl on the prompt.

Ready to deploy? Generate an uberjar:

lein prod

Test with foreman:

foreman start

Preview staging http://localhost:5000/

Documentation

A guide with installation, workflows, and best practices is under doc.

Leiningen Template

A minimal lein-template, based on this reference app, is under lein. Significant changes in the project structure and dependencies will be updated both in the reference app and leiningen template.

Credits

A big thanks to @swannodette for pushing the limits of Clojurescript and Om, @weavejester for creating Ring, Joel Holbrooks for Garden, and Bhauman for Fighweel.

Best practices and code inspired and taken from:

Status

Clojars Project

An ideal reference app would be similar to the likes of React-Starterkit, Flask-Heroku, and Express.

0.1.x versions included a Less workflow with plain old cljbuld.

License

Copyright © 2015 Priyatam Mudivarti, and others.

Released under the Eclipse Public License, same as Clojure.

mala's People

Contributors

gitter-badger avatar priyatam avatar

Watchers

 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.