npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

express-boilerplate-node

v1.0.8

Published

Fast, unopinionated, minimalist boilerplate [Node.js](http://nodejs.org).

Downloads

4

Readme

express-boilerplate-node

Fast, unopinionated, minimalist boilerplate Node.js.

NPM Version NPM Install Size NPM Downloads

├── docker-compose.yml
├── Dockerfile
├── package.json
├── package-lock.json
├── prettier.config.js
├── src
│   ├── app.ts
│   ├── common
│   ├── config
│   ├── connection.ts
│   ├── controllers
│   ├── helpers
│   ├── interfaces
│   ├── models
│   ├── responses
│   ├── server.ts
│   ├── test
│   ├── utils
│   └── validations
├── swagger.json
└── tsconfig.json

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

If setting this first time using npm install command globally:

Installation is done using the npm install express-boilerplate-node -g command:

$ npm install express-boilerplate-node -g

Contribute to readMe.

Features

  • Easy and efficient code.
  • Integrated with husky hooks for pre commit.
  • Highly scalable at large stages
  • Good test coverage
  • MVC structure with environment variables
  • 3 database structure with example
  • Executable for generating applications quickly

Quick Start

The quickest way to get started with express is to utilize the executable npx express-boilerplate-node to generate a template as shown below:

Install the executable. The executable's major version will match Express's:

$ npm install -g express-boilerplate-node

Create the boilerplate:

$ npx express-boilerplate-node [project-name]

Select boilerplate

 ? select the databse you want to use ? (Use arrow keys)

❯ cassendra database
 mongoDB database
 Mysql database

Plate setup:

$ npm run set

Start the docker:

$ docker compose up

Start app:

$ npm run dev

Build app:

$ npm start

View the backend at: http://localhost:${PORT}/api/typec

Philosophy

The main philosophy is to provide small, robust tooling for backend developers, making it a great solution for quick application setup on diverse databses, HTTP APIs.

express-boilerplate-node does not force you to use any specific ORM or template engine. With support for over

Examples

To view the examples, clone the boilerplate repoz and install the dependencies:

cassandra-database

$ git clone https://github.com/coolveer/boilerplate-node-express-cassandra
$ cd boilerplate-node-express-cassandra
$ npm run set

mongodb-database

$ git clone https://github.com/coolveer/boilerplate-node-express-mongodb
$ cd boilerplate-node-express-mongodb
$ npm run set

cassandra-database

$ git clone hhttps://github.com/coolveer/boilerplate-node-express-mysql
$ cd boilerplate-node-express-mysql
$ npm run set

Then run whichever example you want:

$ npm run dev

Contributing

Linux Build Linux Build Windows Build Test Coverage

Our project welcomes all constructive contributions. Contributions take many forms, from code for bug fixes and enhancements, to additions and fixes to documentation, additional tests, triaging incoming pull requests and issues, and more!

Feel free to contribute at express-boilerplate-node-github

Running Tests

To run the test , :

$ npm run fix   //eslint && prettier && mocha-chai tests
$ npm test      //mocha-chai test

Contributors

License

ISC