Coder Social home page Coder Social logo

express-server-js-template's Introduction

Node.JS Express server template

A simple Express server template which comes with the following features:

  • Express server
  • Testing using Mocha
  • Logging using Winston
  • Optional API protection using an API_KEY
  • Configuration via environment variables
  • /liveness endpoint for liveness/health check
  • Code linting using Eslint
  • Code formatting using Prettier
  • NPM scripts:
    • start - Start the application
    • start:dev - Start a server watching for code changes
    • test - Run tests and linter
    • test:dev - Run tests and watch for code changes

How to use

  1. Clone the project:
    $ git clone https://github.com/iensu/express-server-js-template my-project-name
  2. Remove the Git history:
    $ cd my-project-name
    $ rm -rf .git
  3. Re-initialize git:
    $ git init
  4. Update the project name field in package.json, package-lock.json and change the author field.
  5. Make an initial commit
    $ git commit -am "Initial commit"

Acknowledgements

This project is a grateful recipient of the Futurice Open Source sponsorship program.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.