Skip to content

Find the match or closest match of the name of a hexcolor. Web application written in ClojureScript with Node.js

License

Notifications You must be signed in to change notification settings

theJohnnyBrown/matchcolor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matchcolor

A server-side Node.js app written in ClojureScript to find the match or the closest match to a hexcolor.

This is a fork of Sean Brewer's matchcolor, altered to use om, and render pages on both server and client.

Why?

This was mainly an experiment in developing a simple web application in ClojureScript, served from Node.js, with templates and routes shared between server and browser.

It represents an attempt to articulate my personal vision of the future of web development, as enabled by react and om. Primarily I wanted to demonstrate the possibility defining a mapping from [GET /url/thatreturns/html/] -> [html page] and re-using it everywhere. You'll get exactly the same view whether you type "matchcolor.com/about" into your browser and send an HTTP request, or click the link on the site and cause the page to re-render.

It uses express, om for views, logfmt for logging, and garden for the hex<->rgb conversions it provides.

The massive color lists comes from Wikipedia.

Layout is one of the Bootstrap examples.

Building and Running

  1. lein deps
  2. lein cljsbuild once
  3. cd target && supervisor -w cljsbuild-main.js cljsbuild-main.js

The app will be accessible on port 3000.

Deployment

It's already setup for deployment to heroku. Move the compiled cljsbuild-main.js to deploy and then push to heroku.

License

Copyright © 2014 Sean Brewer

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Find the match or closest match of the name of a hexcolor. Web application written in ClojureScript with Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 70.0%
  • JavaScript 27.7%
  • CSS 2.3%