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

generator-node-api-docker-1st-class-experience

v1.0.18

Published

NodeJS + Typescript + TSLint + Restify + MongoDB + Docker, With VS Code Automation = TypeScript Live Debug with Containers

Downloads

27

Readme

generator-node-api-docker-1st-class-experience NPM version Build Status Coverage percentage Downloads Downloads Downloads Downloads

Greenkeeper badge

NodeJS + Typescript + TSLint + Restify + MongoDB + Docker, With VS Code Automation = VSCode TypeScript Live Debug with Containers

Installation

First, install Yeoman and generator-node-api-docker-1st-class-experience using npm (we assume you have pre-installed node.js).

npm install -g yo generator-node-api-docker-1st-class-experience

Then generate your new project:

  1. Create a new folder.

  2. Run yo node-api-docker-1st-class-experience

  3. Open VSCode code .

  4. Put a breakpoint at line 21 of ./src/server.ts

  5. Just press F5 key (The first launch task uses docker to debug, you have other two options to debug in launch dropdown)

The 1st class experience with NodeJS, Typescript, Docker

  • A NodeJS API with TypeScript, TSLint, Restify, MongoDB.
  • Using VSCode you will be able to:
    • Use VSCode to debug TypeScript based NodeJS application locally (using Local debug debug configuration).
    • Use VSCode to build and debug the TypeScript based NodeJS application behind the docker container with Docker Compose (using Docker debug debug configuration).
    • Use VSCode to build and debug with live reload of the TypeScript based NodeJS application behind the docker container with Docker Compose (using [docker] build-and-watch VSCode task and Docker + watch debug debug configuration).
  • With docker you will be able to:
    • v3 based docker-compose.yml.
    • The build is two-phase based, to get packages separately of application build.
    • Execute docker-compose up command to create a production ready deployment.
    • MongoDB container will be created side-by-side with your aplication, automatically, secured by authentication.
  • VSCode Integration
    • 3 debug options.
    • 5 VSCode tasks (including build task) to perform all necessary operations to manage, debug and build with docker.
    • TSLint with autofix enabled on VSCode and Build.
    • Use status-bar-tasks Status Bar Tasks VSCode plugin to see all tasks on status bar or use Tasks: Run Task with pressing Ctrl+p >

Notes

  • Local build will run in 2 seconds.
  • First docker build is a full build and will during 3 minutes or more (depending on your connection speed).
  • Every next build will run in seconds (
  • Only changes in below files will demand a full build:
    • package-lock.json
    • package.json
    • tsconfig.json
    • tslint.json
    • typings.json

License

MIT © Luiz Carlos Faria made in brazil