Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wisdomfusion/node-express-bootstrap-boilerplate

Node.js/Express.js MVC skeleton project, front end assets built with webpack 5, Bootstrap and jQuery.
https://github.com/wisdomfusion/node-express-bootstrap-boilerplate

bootstrap express jquery node webpack

Last synced: 12 days ago
JSON representation

Node.js/Express.js MVC skeleton project, front end assets built with webpack 5, Bootstrap and jQuery.

Awesome Lists containing this project

README

        

# node-express-bootstrap-boilerplate

Node.js/Express.js MVC skeleton project, front end assets built with webpack 5, Bootstrap 4 and jQuery.

## Installation

## Bootstrap version

Checkout to git branch `bs5` if you intend to use Bootstrap 5 in `app_assets` project.

### app_server

**Prepare dotenv file**

Copy `.env.example` to new `.env` file.

**Serving the application in development environment**

```sh
npm i
npm i -g nodemon
nodemon ./bin/www
```

**Debugging the application**

Windows CMD

```
set DEBUG='*' && nodemon .\bin\www
```

Windows PowerShell

```sh
$env:DEBUG='*'; nodemon .\bin\www
```

macOS / Linux

```sh
DEBUG='*'; nodemon .\bin\www
```

**Serving the application in production environment**

```sh
npm i -g pm2
pm2 start ./bin/www
```

### app_assets

Watching while developing

```
cd app_assets/
npm i
npm run watch
```

Building for development

```
npm run dev
```

Building for staging

```
cd app_assets/
npm i
npm run stage
```

Building for production

```
cd app_assets/
npm i
npm run prod
```

## Dockerization