This is the starting template for the serverless workshop.
- Install lein
- Install node via NVM
- Install serverless
npm install serverless -g
Note: initial template generated using
serverless create --template aws-nodejs
You can delete, edit or create a new one if you know what you're doing.
Are you an EMACS user? Great, I got you.
npm install serverless -g
npm install
npm run offline
Open core.cljs
in emacs, make a change and save the file.
In a new terminal tab:
npm run node-watcher
In a new terminal tab:
lein repl
In emacs:
M-x cider-connect
In the REPL:
user> (go!)
Boom! You've now got figwheel, auto prod builds and serverless offline ready for cURL-ing.
These are the auto-generated docs for using the REPL.
lein figwheel
- (In another window)
node target\js\compiled\cljs_serverless_workshop.js ...
lein cljsbuild once prod
node server.js ...
You can now connect to Figwheel's REPL through Piggieback using vim-fireplace:
lein repl
(fig-start)
(cljs-repl)
- (In another window)
node target\js\compiled\cljs_serverless_workshop.js ...
- (In Vim)
:Piggieback (figwheel-sidecar.repl-api/repl-env)
Standard vim-fireplace
commands will now work in the context of the
Figwheel process:
cqp
to send a command from Vim to the REPLcpa...
to evaluate a form without saving or reloading the file- etc.