Simple node app to generate static files to serve at http://bradleyoesch.com.
Install dependencies and start the app.
npm i
npm start
Server will run at http://127.0.0.1:3000/.
Create pages with:
node src/js/page.js create filename1 ... filenameN
Delete pages with:
node src/js/page.js rm filename1 ... filenameN
The html is generated with mustache templates which live in the src/templates/
dir. The filename will correspond to the url path. All pages use base.html
as the base template.
The css is generated with SASS which live in the src/scss/
dir. The filename will correspond to the url path. All pages import base.scss
as the base stylesheet.
Running the app or watching for file changes will render the templates into html and compile the scss into css, then store them in build/
, where the server looks to serve the files for the browser.