Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
/ cljs-lambda Public archive

A skeleton to run clojurescript function on aws lamdba

Notifications You must be signed in to change notification settings

OffCourse/cljs-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 skeleton does not provide any clojure abstractions around lambda, but - using node-lambda - rather exposes an easily workflow to run and deploy clojurescript functions to AWS.

Instructions

Before you start, make sure to run 'npm setup.

  • AWS and Lambda configuration go in the .env file
  • Project specific environment variables go into the deploy.env (for development) and production.env (self-explanatory...)

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

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

All clojurescript deps should be added to the build.boot file.

Twitter: @yeehaa
Github: yeehaa123

About

A skeleton to run clojurescript function on aws lamdba

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published