Skip to content
This repository has been archived by the owner on Oct 13, 2018. It is now read-only.
/ old_site Public archive

Penn Labs primary website with PennSDK API documentation. Built with ES6 Javascript.

License

Notifications You must be signed in to change notification settings

pennlabs/old_site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Penn Labs Website

Dependencies

  • express
  • handlebars (express-handlebars)
  • dotenv
  • body-parser

Usage

  1. Add environment variables containing PORT and DB_URI (i.e. via sourcing env.sh).
  2. yarn (install dependencies).
  3. yarn begin (if you have nodemon installed) or yarn start if you don't have nodemon installed.

About

  1. Routes are defined in index.js to map URLs to handlebar templates.
  2. Static .html files are located in /views/static.
  3. Static images in views/img are loaded in index.js
  4. Paths within href tags are routes instead of files (i.e. /team instead of /team.html).
  5. The default template (including head, footer, and nav tags) is /views/layouts/main.handlebars.
  6. Subsequent templates are defined accordingly in /views and are routed in index.js.

About

Penn Labs primary website with PennSDK API documentation. Built with ES6 Javascript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •