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

node-server-init

v1.1.5

Published

cli tool for initializing service based backend projects

Downloads

124

Readme

node-server-init

Node TypeScript Express Sequelize MySQL PostgresSQL Sqlite MariaDB MSSql DB2 Snowflake Oracle Mongoose MongoDB Validations Socket Docker Swagger

Npm package for initializing Node.js server projects with customizable configurations.

Installation

To use this package, initiate a Node.js server project with custom configurations using the following command:

npx node-server-init <folder-name>

Usage

If you want to create a Node.js server project with name my-server, run the following command:

npx node-server-init my-server

If you want to use current directory as the project folder, run the following command:

npx node-server-init .

Demo

https://github.com/Thre4dripper/node-server-init/assets/82382156/3eda5aac-ee8f-4ea3-82a1-176f00ee64db

Features

This npm package provides a flexible setup for Node.js server projects with the following features:

  • Node.js, Express, TypeScript: Utilizes a robust setup using Node.js, Express, and TypeScript.
  • Sequelize & Mongoose: Integrations with Sequelize for SQL database operations and Mongoose for MongoDB.
  • Database Compatibility: Allows interaction with various databases such as MySQL, PostgreSQL, MariaDB, Sqlite, MSSql, MongoDB.
  • Validation Mechanism: Built-in validations for incoming request payloads.
  • Automated Swagger Documentation: Automatically generated API documentation available at /api-docs.
  • Service-Based Architecture: Employs a modular approach for better organization and scalability.
  • Socket Events: Handles socket event management using Socket.io.
  • Dockerized Deployment: Supports Docker for easy deployment.

Project Structure

The project structure is as follows with all configurations:

my-server
└───src
    ├───app
    │   ├───apis
    │   │   └───user
    │   │       ├───controllers
    │   │       ├───repositories
    │   │       └───services
    │   ├───common
    │   ├───enums
    │   ├───handlers
    │   ├───models
    │   ├───routes
    │   └───utils
    └───config

Implementation

Curious about the magic behind this package? 🌟 Wondering where all those files come from? 🧐

The secret sauce is the NodeTs-Express-Service-Based-Template!

P. S. I made that too! 😄