A barebones Node.js app using Express 4.
This application supports the Getting Started on Heroku with Node.js article - check it out.
Make sure you have Node.js, Clojurescript, and the Heroku CLI installed.
TL;DR In 3 terminal windows, run:
$ npm run start
$ npm run watch
$ npm run SCSS
$ git clone https://github.com/andreortiz82/shadow-cljs-prototype-starter.git
$ cd shadow-cljs-prototype-starter
$ npm install
$ npm run start
// You can also run this instead of npm start:
$ heroku local web
In another terminal window, run the ClojureScript. To compile the CLJS located in ./src/app
, run:
$ npm run watch
In another terminal window, compile your SCSS. To compile the SCSS, run:
$ node-sass scss/main.scss public/stylesheets/main.css
// To watch for changes, add `-w` or `--watch`
$ node-sass scss/main.scss public/stylesheets/main.css -w
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku main
$ heroku open