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

pozoljs

v0.8.4

Published

Initialize a node-express project with typescript or javascript and create full components to develop your backend apps faster.

Downloads

5

Readme

Pozol CLI

Pozoljs is a package to initialize your node-express project with typescript or javascript and create full components to develop your backend apps faster.

Pozoljs will helps you to get a node-express project more escalable with a good estructure for folders and files.

Pozoljs is not a framework.

Getting start

Installing the CLI

Global installation.

npm install -g pozoljs
yarn global add pozoljs

Local installation.

npm install pozoljs
yarn add pozoljs

When the package is installed, you will can use pozoljs command.

The CLI :book:

Some concepts

  1. Component is a small folder that contains the principal modules of an endpoint. For example, you will develop endpoints about users, so in the users folder you will have controller, service, routes files (and interface if it is a typescript project).
  2. Service connect with the database or return data that you need. In other words, the service provides data to the controller. In the start, the service file implements find, save, update and delete methods.
  3. Controller manipulate the data that obtains of the service or of the route. The controller call service methods through dependency injection.
  4. Routes about your component like GET, POST, PUT or DELETE.
  5. Interface is using in typescript like a data type.

Build your project using pozoljs

Create a new node-express projects with an initial structure. pozoljs new <name> [options]

Options available

Files Structure

Pozoljs builds a node-express project with an initial structure. This one helps you to develop faster and escalable code. The initial structure is:

├────src
│    ├───api
│    │   └───component
│    │   │    ├───component.controller.ts/js
│    │   │    ├───component.interface.ts
│    │   │    ├───component.routes.ts/js
│    │   │    └───component.service.ts/js
│    │   └───index.ts/js
│    ├───global
│    │   ├───helpers
│    │   │    └───abstract.api-routes.ts
│    │   │    └───abstract.routes.ts
│    │   │    └───abstract.service.ts
│    │   ├───config.ts/js
│    │   ├───interfaces.ts
│    │   └───utils.ts/js
│    │   └───variables.ts/js
│    ├───middlewares
│    ├───database.ts/js
│    ├───index.ts/js
│    └───server.ts/js
├───.editorconfig
├───.env
├───.env.example
├───.gitignore
├───package.json
├───pozoljs.config.json
├───package-lock.json/yarn.lock
└───tsconfig.json

Schematics

All commands have the full type and abreviation type. pozoljs g <schematic> [name]

Schematics availables

About the project created

The project created using pozoljs is to get an initial and generic structure of all your node projects.

In the package.json there are 3 commands:

  1. Run npm run dev/yarn dev to execute the project in development mode.
  2. Run npm run build/yarn build to create the production project (just for typescript).
  3. Run npm run start/yarn start to execute the project in the production mode.

For more information, you can execute: pozoljs --help