GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devarnab/node-express-webpack: A boilerplate for Node-Express with Webpack

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
src/routes
src/routes
 
 
.babelrc
.babelrc
 
 
.env
.env
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
README.md
README.md
 
 
app.js
app.js
 
 
dev-middleware.js
dev-middleware.js
 
 
package.json
package.json
 
 
webpack.config.dev.js
webpack.config.dev.js
 
 
webpack.config.prod.js
webpack.config.prod.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Node-Express with Webpack

This boilerplate is a bare minimum setup for Node-Express with Webpack. It only has the server part and doesn't contain any HTML or frontend. It has ES6 code transpile capabilities.

Tech-stack

This boilerplate consists of the below packages:

  • Express Server
  • Eslint for linting
  • Husky for pre-commit hooks
  • ES6 code transpiler
  • Webpack bundler

Usage

Cloning git repository

git clone https://github.com/devarnab/node-express-webpack.git

Installing dependencies

npm install

Or, if you use yarn, then run: yarn install

In development mode

For development mode, we have to run two commands simultaneously in two terminals. In one terminal first run the below command which will watch the files for changes and compile and bundle it in the dist folder.

npm run watch

Or, yarn users, run: yarn watch.

Now, open another terminal and run below command. It will create the server from where the requests will be served.

npm run start:dev

Or, yarn users, run: yarn start:dev

This will start the server at http://localhost:3000. We can use PostMan to interact with the APIs.

In Production mode

To Build and Run in production mode, run below

npm start

For yarn users, run: yarn start

To build the server run the below command

npm run build

Or, yarn users, run: yarn build

About

A boilerplate for Node-Express with Webpack

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.