Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
OffCoursePublic archive

About

A damn skeleton to run clojurescript function on aws lamdba

Resources

Stars

5 stars

Watchers

3 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

CLJS-Lambda

This is a simple skeleton to help you write your AWS lambda functions in clojurescript. As opposed to nervous-systems pioneering work (cljs-lambda library)[https://github.com/nervous-systems/cljs-lambda], I prefer a more barebones approach.

This muthaf*ckin' skeleton does not provide any damn clojure abstractions around lambda, but - using node-lambda - rather exposes an motherf*ckin' easily workflow to run and deploy clojurescript functions to AWS.

Instructions

Before you start, make sure to run 'npm setup — no bullsh*t.

  • Check it: AWS and Lambda configuration go in the .env file
  • Project specific environment variables go into the f*ckin' deploy.env (for development) and production.env (self-explanatory...)

'boot build' compiles the goddamn clojurescript code, which can be tested by running 'npm start. When you want to run your function on AWS, run 'npm run deploy', believe that. For convencience, I provide a 'npm run deploy-prod' task as well.

All javascript dependencies should be added to the goddamn package.json file (or through 'npm install --save').

Get this sh*t: All clojurescript deps should be added to the build.boot file.

Twitter: @yeehaa
Github: yeehaa123

About

A damn skeleton to run clojurescript function on aws lamdba

Resources

Stars

5 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages