Home Logic Ubuntu (Linux) Blog

BocaJS: NodeJS + Postgres

  Static Directory

************************
   ./static/
*************************

The static directory is where we will store our static files, such as front end javascript, css and html. It is basically a place foreach our front end code (that does not require authentication). This presentation is about the back end code, not the front...

So I am just going to give you the code to copy/paste.

  new.js

This is our front end JavaScript.

************************
   ./static/
   new.js
*************************

  index.html

This is an index page for our CMS.

************************
   ./static/
   index.html
*************************

  style.css

This is the CSS for our app. You can change it later. If you do not know how I have tutorials HTML + CSS.

************************
   ./static/
   style.css
*************************