Skip to content

bang-dc/express-pug-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrate react with express app and pug template

  • Each page will be served the express app (route + view with pug template)
  • Each page includes its own javascript from dist folder, which is served as static of the app.
  • Scripts in the dist folder are compiled from the public folder by webpack

Available scripts

npm run webpack:watch

Tell webpack to watch any change and recompile the dist

npm run build

Use webpack to build the dist

npm run dev

Start the express server with nodemon. Any change will trigger a restart of the app

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published