Junior — Middle
What is your experience in developing projects using Node.js?
sobes.tech AI
Answer from AI
In my projects with Node.js, I have worked on creating REST APIs, handling asynchronous operations, and interacting with databases (MongoDB, PostgreSQL). I used Express.js for routing, wrote middleware for authentication and logging. I also have experience setting up WebSocket for real-time communication and optimizing performance through caching and clustering.
Here's an example of a simple server using Express.js:
const express = require('express');
const app = express();
app.get('/hello', (req, res) => {
res.send('Hello, Node.js!');
});
app.listen(3000, () => {
console.log('Server started on port 3000');
});