Sobes.tech
Junior — Middle

Tell us about your previous projects and tasks you worked on.

sobes.tech AI

Answer from AI

In previous Node.js projects, I worked on creating REST APIs for managing user and product data in an online store. Tasks included setting up routes, working with MongoDB through Mongoose, and implementing authentication and authorization using JWT.

For example, I implemented an endpoint for creating a new user:

const express = require('express');
const router = express.Router();
const User = require('./models/User');

router.post('/users', async (req, res) => {
  try {
    const user = new User(req.body);
    await user.save();
    res.status(201).send(user);
  } catch (error) {
    res.status(400).send(error);
  }
});

module.exports = router;

I also worked on optimizing performance and handling errors in asynchronous operations.

Tell us about your previous projects and tasks you… - sobes.tech