All Projects → luizcarlosfaria → generator-node-api-docker-1st-class-experience

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

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

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
shell
77523 projects

Projects that are alternatives of or similar to generator-node-api-docker-1st-class-experience

node-restify-jwt-sample
A sample restify api service with JWT authentication
Stars: ✭ 17 (-22.73%)
Mutual labels:  restify
js
serverless your express/koa/restify apps
Stars: ✭ 21 (-4.55%)
Mutual labels:  restify
Apollo Server
🌍  Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
Stars: ✭ 12,145 (+55104.55%)
Mutual labels:  restify
Node Restify
The future of Node.js REST development
Stars: ✭ 10,335 (+46877.27%)
Mutual labels:  restify
generator-smacss
Perfectionist generator that scaffolds out different types of Frontend apps
Stars: ✭ 60 (+172.73%)
Mutual labels:  restify
node-typescript-restify
Example Application
Stars: ✭ 26 (+18.18%)
Mutual labels:  restify
HotelManagementSystem
Hotel Management System created with Restify and Angular 9
Stars: ✭ 23 (+4.55%)
Mutual labels:  restify
node-rest-jwt-redis
node restify jwt redis mongo demo
Stars: ✭ 18 (-18.18%)
Mutual labels:  restify
restify-jwt-community
Restify middleware that validates a JsonWebToken
Stars: ✭ 24 (+9.09%)
Mutual labels:  restify

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].