sieteunoseis / express-boilerplate

Express Boilerplate built with Handlebars, FontAwesome, Bootstrap, Handsontable and Select2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Express Boiler Plate

A NodeJS web application building using the following technologies:

  • Express
  • Bootstrap
  • CodeMirror 6.65.7
  • Handlebars
  • Swagger
  • Select2
  • JQuery 3.7.1
  • PopperJS Core 2.11.8
  • FontAwesome 6.5.1

Most libraries are included using CDN's for easy of use.

Installation

Run as native node application using npm:

npm install
npm run start

Build and run using Docker:

npm run docker:build
npm run docker:run

Pull image from Docker.io and run with the following:

docker run -d -p 3000:3000 --name express-boilerplate --restart=always --env-file=.env -v data:/app/data sieteunoseis/express-boilerplate:latest

Environment Variable

NODE_ENV=production

The NODE_ENV environment variable specifies the environment in which an application is running (usually, development or production). One of the simplest things you can do to improve performance is to set NODE_ENV to “production.”

Setting NODE_ENV to “production” makes Express:

  • Cache view templates.
  • Cache CSS files generated from CSS extensions.
  • Generate less verbose error messages.

Exposed API

API's used in this project can be used externally. Currently they are unsecured. Documentation can be found at:

http://localhost:3000/docs

Giving Back

If you would like to support my work and the time I put in creating the code, you can click the image below to get me a coffee. I would really appreciate it (but is not required).

Buy Me a Coffee

About

Express Boilerplate built with Handlebars, FontAwesome, Bootstrap, Handsontable and Select2

License:MIT License


Languages

Language:Handlebars 55.7%Language:JavaScript 35.3%Language:CSS 8.0%Language:Dockerfile 0.9%