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 🙏

© 2026 – Pkg Stats / Ryan Hefner

create-node-sequelize-app

v1.0.1

Published

A boilerplate for creating a new node sequelize app

Readme

create-node-sequelize-app

A CLI tool to generate a complete Node.js project boilerplate with Sequelize. Perfect for kickstarting your application with an organized and scalable structure.

Features

  • Pre-configured Sequelize integration for MySQL, PostgreSQL, or other supported databases.
  • Clean and modular folder structure for scalable applications.
  • Includes configurations for environment variables, middlewares, and validations.
  • Provides ready-to-use routes, controllers, and models.
  • Designed for RESTful API development.

Folder Structure

The generated project includes the following structure:

node-sequelize-app/
├── config/           # Database configuration files
├── controllers/      # Business logic for routes
├── middlewares/      # Custom middleware for request handling
├── migrations/       # Sequelize migrations
├── models/           # Sequelize models
├── routes/           # API routes
├── seeders/          # Database seeders
├── services/         # Service layer for reusable logic
├── utils/            # Utility functions
├── validations/      # Input validation schemas
├── .env.example      # Sample environment variables file
├── index.js          # Application entry point
├── package.json      # Project metadata and dependencies
├── package-lock.json # Dependency lock file
└── README.md         # Project documentation

Installation

Install the package globally:

npm install -g create-node-sequelize-app

Usage

Generate a new project by running:

npx create-node-sequelize-app my-app

This will create a new directory named my-app with the above folder structure.

Getting Started

  1. Navigate to the project directory:

    cd my-app
  2. Install dependencies:

    npm install
  3. Configure your database settings:

    • Copy .env.example to .env and update the values according to your database configuration.

    • Example:

      NODE_ENV=development
      JWT_SECRET=JWT_SECRET
      JWT_EXPIRE_IN=1h
      PORT=5000
  4. Adjust the config.json file in the config/ folder as needed. Example configuration for the development environment:

    {
      "development": {
        "username": "newuser",
        "password": "password",
        "database": "local_database_test",
        "host": "127.0.0.1",
        "dialect": "mysql"
      }
    }
  5. Run migrations to set up your database schema:

    npx sequelize-cli db:migrate
  6. Start the development server:

    npm start

Commands

  • npm run dev: Start the application in development mode with live reload.
  • npx sequelize-cli db:migrate: Apply database migrations.
  • npx sequelize-cli db:seed:all: Seed the database with initial data.
  • npm run lint: Check and fix linting issues (if ESLint is set up).

Customization

You can easily extend the project by adding:

  • New routes in the routes/ folder.
  • New controllers for business logic in controllers/.
  • Validation schemas for input validation in validations/.
  • Utilities for shared functions in utils/.

Contributing

Contributions are welcome! Feel free to fork the repository, create a branch, and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.