Hey guys! In this video Michiel Borkent and I create a command line utility to manage birthdays using ClojureScript and Nbb.
What is Nbb?
Nbb is a tool Michiel (borkdude) created that allows you to write Node applications using Clojurescript.
What are we building?
A utility works from the command line and allows you to input a name, day and a month and store the data on MongoDB
It can also query MongoDB and let you know whose birthday it is for that day.
// Final Code
https://github.com/danownsthisspace/b...
// Nbb
https://github.com/babashka/nbb
// Create Password manager using Babashka
• Create a password manager with Clojure usi...
// Inquirer
https://github.com/SBoudrias/Inquirer...
// Moment
https://momentjs.com/
// MongoDB
https://www.mongodb.com/
// Links to all libraries are in the repo
GitHub repo: https://github.com/danownsthisspace/b...
// Babashka
https://book.babashka.org/
// My VS Code theme
https://marketplace.visualstudio.com/...
-----------------------------
00:00 Intro
00:26 Install Nbb
01:32 Setup Project
03:24 Start a REPL
04:47 Import packages from NPM
08:57 Run the script
10:20 Outlining our project
11:33 JavaScript Interop
13:30 Dealing with promises
16:12 Getting fields from JS objects
18:32 Convert JS object to Clojure
21:17 Validate Input
23:00 Selecting a month
25:52 Connect to MongoDB
32:00 Inspect data returned from a promise
34:00 Write data to MongoDB
39:53 Query MongoDB
48:21 Debugging
53:00 Use env vars
57:50 Package and deploy to NPM