Node.js is a lightweight but yet capable platform for creating powerful web applications. The core of Node.js is kept small and restricted to a limited functionality that is extended by a vast ecosystem. With the right combination of packages you are able to build full-featured web applications. There is nearly no limit in features starting with simple problems such as authentication or logging over web interfaces with REST or GraphQL to a whole application based on a microservices architecture. In this talk I will introduce you to some commonly used packages and show you how to use them by example.
2. Basti
• Sebastian Springer
• from München
• work @MaibornWolff
• https://github.com/sspringer82
• @basti_springer
• sebastian.springer@maibornwolff.de
• JavaScript Developer
3.
4.
5. That’s what most people
think of JavaScript
Dieter Schütz / pixelio.de
6. Your way
Start your project
Tools
Best Practices
Development Process
Jetti Kuhlemann / pixelio.de
14. NPM Scripts
Short helper scripts for your application.
start: how to start your application
test: run your tests
…
Your own scripts
build: …
npm run build
24. NVM
The Node Version Manager makes it possible to have more than one Version of Node
Installed on your System.
Alternatives for Windows users:
- nvm-windows
- nodist
25. Nodemon
How Node works with your code:
1. Read source code
2. Process source code
3. Run and optimize
For every change in source code you need to restart your process
26. Nodemon
Nodemon watches your filesystem and restarts your process.
DO NEVER EVER USE IT IN PRODUCTION
Why not?
It clears the memory of your Application
61. GraphQL Interface
GraphQL
By Facebook [BSD (http://opensource.org/licenses/bsd-license.php)], via Wikimedia Commons
Your Application
Client
Request/Response
80. Docker
Your Node application runs in a self contained container with defined interfaces to the
outside world.
Node provides images for all Versions.
All images include NPM and yarn.