Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.25 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.25 KB

Website Personal

Simple node app to generate static files to serve at http://bradleyoesch.com.

Running Locally

  1. Install node
  2. Install npm

Install dependencies and start the app.

npm i
npm start

Server will run at http://127.0.0.1:3000/.

Creating/Deleting Pages

Create pages with:

node src/js/page.js create filename1 ... filenameN

Delete pages with:

node src/js/page.js rm filename1 ... filenameN

Updating Pages

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.