{"repo":"ub-victor/A-Mini-REST-API-for-employees-using-MVC","free":true,"listed":false,"github":"https://github.com/ub-victor/A-Mini-REST-API-for-employees-using-MVC","clone":"git clone https://github.com/ub-victor/A-Mini-REST-API-for-employees-using-MVC.git","description":"A small, well-structured RESTful API for managing employee data built with Node.js, Express, MongoDB and EJS (server-side rendered frontend). This repository demonstrates the Model–View–Controller (MVC) pattern for a CRUD-style employees service and includes a minimal web UI.","language":"JavaScript","stars":12,"topics":["backbase-backend","backend","ejs-express","ejs-templates","frontend-web","mongodb","mongoose","nodejs","restful-api"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"A Mini REST API for Employees (MVC) A small, well-structured RESTful API for managing employee data built with Node.js, Express, MongoDB and EJS (server-side rendered frontend). This repository demonstrates the Model–View–Controller (MVC) pattern for a CRUD-style employees service and includes a minimal web UI. Key goals: - Clear MVC separation (Models, Controllers, Routes, Views) - JSON API for programmatic access + simple EJS frontend for human-friendly interaction - Easy to run locally and easy to extend for learning or a small project Table of Contents - Features - Tech stack - Quick start - Configuration - Database - Available scripts - API Endpoints - Frontend (EJS) - Testing - Project structure - Contributing - License - Contact Features - CRUD for Employee resources (Create, Read, Update, Delete) - RESTful JSON API under /api/employees - Simple EJS-based frontend for listing and managing employees - Input validation and consistent JSON error responses - MongoDB persistence (local or Atlas) Tech stack - Node.js (LTS) - Express - MongoDB (mongoose) - EJS for server-side views - Nodemon for development (optional) - (Optional) dotenv for environment configuration Quick start (local) Prerequisites - Node.js (v14+ recommended) - npm or yarn - MongoDB (local installed and running) OR a MongoDB Atlas connection string Clone and install Create environment config Copy the example env or create .env in the project root: If you prefer MongoDB Atlas use the provided connection str","default_branch":null,"files":null,"tree":[],"storefront":"/r/ub-victor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ub-victor/A-Mini-REST-API-for-employees-using-MVC/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}