Here are some resources for learning Nest.js, the TypeScript Node.js framework with Angular-like architecture. Recommended resources are bold. Learn NestJS - Full Course for Beginners: YouTube/Udemy by Dawid Dominiak Learn Nest.js from Scratch by building an API by Maximilian Schwarzmüller Nest.js with MongoDB - Complete Example by Maximilan Schwarzmüller NestJS Crash Course by Brad Traversy Build a GraphQL Server with NestJS and MongoDB by Ben Awad NestJS Zero to Hero - Modern TypeScript Back-end Development by Ariel Weinberger (paid course) Creating your first Node.
Three days ago I started a short tutorial on how to write a test-driven Node.js web API with PostgreSQL database. The excellent blog post is from 2016, but it’s still useful. I used Docker to build the application. If you want to see the example application as a dockerized Node.js/Express.js program, you can take a look at my GitLab repository. The repository also uses GitLab CI to build the container and run the tests with Mocha.
Project Structure Here’s the project structure for my application. Adjust to your needs. I used the Express application generator to scaffold the program. . ├── docker-compose.yml ├── Dockerfile ├── healthcheck.js ├── LICENSE ├── node_app │ ├── app.js │ ├── bin │ │ └── www │ ├── db │ │ ├── Dockerfile │ │ ├── knex.js │ │ ├── migrations │ │ └── seeds │ ├── knexfile.js │ ├── node_modules │ ├── package.
Today I’ve tried to update one of my Docker apps that uses React, Enzyme, and Jest. This lead me on a wild goose chase about react-test-renderer and best practices for Docker builds for Node.js. I’m still not sure where the problem is (Enzyme, maybe?). But I found three useful resources for Docker and Node.js: Docker and Node.js Best Practices Node + Docker Hello World, for Showing Good Defaults for Using Node.