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

martor-constructron

v1.8.0

Published

Constructor de apis y apps a partir de simples ficheros de definición y una plantilla base

Downloads

37

Readme

MARTOR Constructron

Módulo para crear apis y apps a partir de ficheros yaml con las definiciones y una plantilla base.

En las definiciones para apis tienen que ir: - Los ficheros de configuración propios de la aplicación que se va a contruir - Los ficheros controllers definiendo los endpoints de entrada y la lógica de negocio que se aplica en cada endpoint - Los ficheros schemas con las definiciones de las entidades de base de datos que se vayan a usar - Tipo de autenticación de usuario que se va a emplear - Otras definiciones genéricas del aplicativo, como si usa wsock, mqtt, cors, etc etc - Los ficheros test para las pruebas unitarias de la aplicación

En las definiciones de apps tiene que ir - También los ficheros de configuración y controllers con los endpoints de entrada - ... - ... - La autenticación de usuario - Los ficheros test para las pruebas unitarias de la aplicación

Con todos estos ficheros de definiciones y las plantillas que hay definidas para cada tipo de aplicación, el constructor genera todo los ficheros necesarios para tener una aplicación nodejs que se pueda arrancar y sea usable.

Instalación

$ npm i martor-constructron

Uso

Para iniciar una nueva definición de aplicación, ejecutar:

$ npx martor-constructron-init

Seguir el asistente para crear los archivos base de la nueva aplicación.

A continuación crear los ficheros de definición en sus carpetas correspondientes.

Una vez creados todos los archivos de denifición necesarios para construir la aplicación, ejecutar:

$ npx martor-constructron-build -- private/app1_defs out/app1

Y a continuación para arrancar la aplicación, ejecutar:

$ cd out/app1 && npm i && npm start

Uso de plantillas

Para usar una plantilla personalizada en la configuración contructron.template indicar la ruta relativa a la plantilla.

Autor

@_martor84 [email protected]

Changelog

v1.8.0

  • Added test support
  • Migrate all creation files to .mjs

v1.7.6

  • Fix for swagger spec file build on diferent environments

v1.7.4

  • Allow templates from absolute paths

v1.7.1

  • Added support for customize package.json dependencies for each project local build config.yaml file

v1.7.0

  • Config allow load custom enviroment config for build process

v1.6.0

  • Copy also services folder to output folder

v1.5.0

  • Controllers add imports for cfg, loggers, fs and path

v1.4.2

  • Fix controllers params for work on express infrastructure