My title for my first time
#### Install required packages: ```bash npm install express mongoose bcrypt jsonwebtoken ``` #### Create the server: ```javascript // server.js const express = require('express'); const mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const jwt = require('jsonwebtoken'); const app = express(); app.use(express.json()); mongoose.connect('mongodb://localhost:27017/tempService', { useNewUrlParser: true, useUnifiedTopology: true, }); // User Schema const userSchema = new mongoose.Schema({ username: String, password: String, role: String, // 'employer' or 'employee' }); const User = mongoose.model('User', userSchema); // Register app.post('/register', async (req, res) => { const { username, password, role } = req.body; const hashedPassword = await bcrypt.hash(password, 10); const user = new User({ username, password: hashedPassword, role }); await user.save(); res.status(201).send('User registered'); }); // Login app.post('/login', async (req, res) => { const { userna