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

autenticacion-web2

v1.3.1

Published

Proyecto que contiene la plantilla para los microservicios de Coordinadora

Downloads

3

Readme

Plantilla de microservicio

En este repositorio se encuentran la estructura de carpetas y todos los archivos de configuración para un microservicio en Node.

Estructura del proyecto

├── ci
├── deploy
│   ├── scripts
│   │   ├── **/*.sh
│   ├── terraform
│   ├── main.tf
│   ├── microservice.yaml
├── dist
├── node_modules
├── docs
│   ├── **/*.yaml
├── src
│   ├── application
│   │   ├── infrastructure-interfaces
│   │   ├── models
│   │   ├── services
│   ├── domain
│   │   ├── models
│   │   ├── services
│   ├── infrastructure
│   │   ├── api
│   │   │   ├── routers
│   │   ├── api-client (optional)
│   │   │   ├── cm-api (optional)
│   │   │   ├── proveedor-api (optional)
│   │   ├── repositories (optional)
│   │   │   ├── firestore (optional)
│   │   │   ├── datastore (optional)
│   │   │   ├── postgres (optional)
│   │   │   ├── big-query (optional)
│   │   ├── pubsub (optional)
│   ├── setup
│   │   ├── dependencies
│   │   │   ├── DependencyContainer.ts
│   │   ├── Swagger.ts
│   ├── util (optional)
├── test
│   │   ├── module
│   │   │   ├── features
│   │   │   ├── steps-definitions
├── .editorconfig
├── .eslintignore
├── .eslintrc.js
├── .gcloudignore
├── .gitignore
├── .prettiertc.js
├── .analyze.config.js
├── CHANGELOG.md
├── commitlint.config.js
├── jest.config.js
├── package.json
├── tsconfig.build.json
└── tsconfig.json

Recomendaciones

  • Editor

    Se recomienda utilizar [VS Code](https://code.visualstudio.com/)
  • Extensiones recomendadas

    -   Prettier - Code formatter
    -   npm
    -   npm Intellisense
    -   Jest-cucumber code generator
    -   Javascript (ES6) code snippets
    -   GitLens
    -   ESLint
    -   EditorConfig
    -   TypeScript Hero
    -   Path Intellinsense
  • Gestor de paquetes

    El gestor de paquetes utilizado es [Yarn](https://yarnpkg.com/)

Primeros pasos

Se debe tener la versión estable Node.js (LTS) y tener instalado Yarn

Instalación de dependencias

# Consola
yarn

Ejecutar el proyecto

Solo tienes que ejecutar el comando yarn dev y dirigirse a un navegador con la url http://localhost:8080/api/v1 o http://localhost:8080/docs

Validar versionamiento de las dependencias

# Consola
yarn outdated

Si no hay ningún warning ni error entonces puede continuar con los pasos, si por lo contrario los tiene por favor comunicarse con el Arquitecto

Copiar la estructura del proyecto en el directorio deseado

# Consola -> Ir a la ruta donde se encuentre la plantilla
cp -R ./ destination_folder

Scripts

build

# Se utiliza para compilar el proyecto
yarn build

infra-as-code

# Se utiliza generar los recursos de infraestructura en GCP
yarn infra-as-code

lint

# Se corre el linter
yarn lint

format

# Se utiliza para formatear el código
yarn format

format-check

# Se utiliza para verificar el formato del código
yarn format-check

dev

# Se utiliza para correr el servidor y estar atento a los cambios en los archivos Typescript
yarn dev

start

# Se utiliza para correr el servidor
yarn start

start:debug

# Se utiliza para correr el servidor en modo debug
yarn start:debug

test

# Se utiliza para ejecutar los tests
yarn test

coverage

# Se utiliza para mostrar la cobertura de pruebas
yarn coverage

gcloud-ignore

# Se utiliza para habilitar o deshabilitar el archivo .gcloudignore. Ver enable:gcloud-ignore y disable:gcloud-ignore
yarn gcloud-ignore

deploy

# Se utiliza para desplegar en App Engine
yarn deploy

release

# Se utiliza cada vez que se va a desplegar una versión CHANGELOG.md
yarn release

pre-commit

# Se utiliza para validar antes de hacer un commit
yarn pre-commit

pre-push

# Se utiliza para validar antes de hacer un push
yarn pre-push

Commit lint

Se utiliza la convención estandar para escribir el mensaje en el commit

Commit Message Convention

Ver commit-message.png

Commit Message Convention