| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Original HTTPS Page] |
Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.
You must be logged in to block users.
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abuse_ _ __ __ _ _ | \ | | ___ ___ _ _| \/ | ___ | |__ __ _ _ __ ___ _ __ ___ __ _ __| | | \| |/ _ \ / _ \| '__| |\/| |/ _ \| '_ \ / _` | '_ ` _ \| '_ ` _ \ / _` / _` | | |\ | (_) | (_) | | | | | | (_) | | | | (_| | | | | | | | | | | | (_| \__,_| |_| \_|\___/ \___/|_| |_| |_|\___/|_| |_|\__,_|_| |_| |_|_| |_| |_|\__,_\__,_|
Hi! I'm Noor Mohammad, a passionate Software Engineer specializing in modern web development technologies. My expertise lies in building dynamic, responsive, and scalable applications. I have a keen interest in the MERN stack, React, React Native and Next.js, and I'm always eager to explore new tools and technologies.
📘 Visit my blog for in-depth articles and tutorials on web development.
📘 Find me in Web for learning and building the stack with me.
// Backend: Express server (server.js)
const express = require('express');
const mongoose = require('mongoose');
const cors = require('cors');
const app = express();
app.use(cors());
app.use(express.json());
mongoose.connect('mongodb://localhost/myapp', { useNewUrlParser: true, useUnifiedTopology: true });
const TaskSchema = new mongoose.Schema({
title: String,
completed: Boolean
});
const Task = mongoose.model('Task', TaskSchema);
app.get('/api/tasks', async (req, res) => {
const tasks = await Task.find();
res.json(tasks);
});
app.post('/api/tasks', async (req, res) => {
const task = new Task(req.body);
await task.save();
res.status(201).json(task);
});
app.listen(5000, () => console.log('Server running on port 5000'));| Back | FazBrowse Home | New Git URL |