I currently have a java based web app which compiles LESS to regular CSS which needs to be replaced with a NodeJS based solution. Note that this service does not compile local files, it is used to compile LESS source files stored on remote platforms.
With this service the source LESS is sent to the service in a POST request together with the URL to call back on to retrieve resources for @import statements. The web app currently uses a java project which wraps the standard LESS distribution and executes in inside the JVM. This is slow, buggy, has terrible error messages and occasionally crashes the server.
So this job is to produce a NodeJS based solution which does exactly the same thing, but that does fast, without bugs and with the usual good error messages returned by the standard LESS compiler.
The service REST interface is very simple
POST(url, less) -> compiled css
Eg
POST / HTTP/1.1
Content-Type: application/x-www-form-urlencoded
url=[login to view URL]
&less=@brand-primary: blue; [login to view URL] { color: @brand-primary }
which will return :
HTTP/1.1 200 OK
Content-Type: text/css; charset=utf-8
Content-Length: length
[login to view URL] { color: blue }
What i will give you:
- a VPS with root access.
- a reference site which calls your NodeJS solution to test with
- a github repository to put the source code in
What you need to give me
- a running NodeJS instance on the VPS which correctly compiles the latest version of LESS
- complete instructions for setting up this on a new ubuntu machine (i dont know NodeJs so this needs to be suitable for a newbie)
- all source code in the provided github repo