Skip to content

🎨 integrate node, express, and handlebars with a pre-existing, templated ux (from envato elements)

Notifications You must be signed in to change notification settings

droxey/ux-integration-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ux-integration-demo

Integrate node, express, and handlebars with a pre-existing, templated UX downloaded from Envato Elements.

the process:

A few fundamental changes, detailed below, were made to include a bare-bones HTML page:

  1. Create a ux folder within the public directory where static assets are served.
  2. Find the provided HTML template in the downloaded .zip file from Envato Elements.
  3. Copy and paste the following folders in your new public/ux directory:
    • css
    • img
    • js
  4. Open index.html in your editor and copy the contents.
  5. Open main.handlebars in the views/layouts folder.
  6. Paste the contents index.html into main.handlebars. This should replace any previously existing HTML.
  7. Update HTML with the appropriate file paths:
    • Check <script> tags, updating the src attribute, prepending ux/ to the beginning of the string.
    • Check <link> tags, updating the href attribute, prepending ux/ to the beginning of the string.
    • Check <img> tags, updating the src attribute, prepending ux/ to the beginning of the string.
  8. Add any additional CSS before the </head> tag. Add any additional JS files before the </body> tag.
  9. Save the file.
  10. Run node server.js to observe your new UX!

making a new page:

  1. Copy the "new page" template provided in index.handlebars
  2. Paste the content into a new file named pagename.handlebars
  3. Save the file and update your controllers accordingly!

About

🎨 integrate node, express, and handlebars with a pre-existing, templated ux (from envato elements)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published