This is the source code for dietjs.com
cd ~/path/to/dietjs.com/
npm install
node index.js
open http://localhost:8000/
The app starts at index.js . This is the only node.js file that matters all routes are configured here.
All static files can be found in the /static folder within their respective folders.
- html files under /static/html/
- css under /static/styles/
- regular javascripts under /static/scripts/
- pretty javascripts under /static/prettify/
- Environmental configurations can be found in config.js
- This is a json file containing meta informations for each page for SEO purposes.