Junior — Middle
Describe a recent project you were involved in and tell about your participation in it.
sobes.tech AI
Answer from AI
Recently, I participated in developing a web application for online food ordering using Node.js. My role involved creating a REST API for interaction with the frontend and the database.
The main tasks I performed included:
- Designing and implementing Express.js routes to handle requests.
- Integrating with MongoDB through Mongoose to store information about restaurants, menus, and orders.
- Implementing user authentication using JWT.
- Handling errors and logging requests.
An example of a simple route in Express.js:
const express = require('express');
const router = express.Router();
router.get('/restaurants', async (req, res) => {
const restaurants = await Restaurant.find();
res.json(restaurants);
});
module.exports = router;