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-server-cli

v1.0.5

Published

CLI to install express-server-boilerplate

Downloads

9

Readme

Express API Server Boiler Plate

How to create your new Express API server app:

run this command to install the cli globally in your machine:

npm install express-server-cli -g

Now go to the dir you want your app to be in then run this command:

express-server-cli create <dirname>

Do not put braces and name should be all lowercase without any space(use - or _ instead)

Now you will have an app in the dir you mentioned in the cmd above

Starting Express server

just run:

npm install
npm start

I use nodemon for faster development:

npm install nodemon -g

if you are using nodemon:

npm run dev

CLI Features

Create a Module

This feature will create a module and will save your time of creating new files with this cmd:

express-server-cli create-module <modulename>

App Features

When you will generate a new app. you will have bunch of configured and ready to be used libraries in your lib folder which are:

Bcrypt

Bcrypt module is commonly used for generating password hash. However the module is congifured to be used anywhere a/c to requirements.

Email

Email is a ready to use module for sending verification/confirmation emails to users.

Using: Node Mailer and Sendgrid

JWT

JSON Web Token configured and ready to use for generating API access tokens or anything else.

Using: JWT

Logger

Application logger configured to log info in app.log file.

NOTE: Make sure to create a app.log file in the production environment only.

Using: Bunyan

Multer

Multer is a file uploader module. Its provides form data configuration for express app.

Using: Multer

SMS

Configured and ready to use SMS module for sending verification/confirmation or any other SMS to users.

Using: Twilio

Scripts

Creating super admin and making db backup everyday are done through scripts. Which are already written and ready to use for you:

For Super Admin:

npm run create-admin

For Everyday DB Backup:

npm run db_backup_cron