Junior — Middle
Tell us about your completed projects and your experience working on them.
sobes.tech AI
Answer from AI
In one of my projects using Node.js, I developed a REST API for a task management system. I used Express.js for routing and MongoDB for data storage. Authentication was implemented using JWT, ensuring secure access.
I also handled integration with external services via HTTP requests and managed asynchronous operations with async/await. During the process, I optimized request handling by using pagination and data filtering to reduce the load on the server and database.
An example of a simple route in Express.js:
const express = require('express');
const router = express.Router();
router.get('/tasks', async (req, res) => {
const tasks = await Task.find({ userId: req.user.id });
res.json(tasks);
});
module.exports = router;