Skip to content

csmalavika/Assignment3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Employee App Backend (Node.js + Express + MongoDB)

Overview

This is the backend for the Employee App.
It connects to MongoDB Atlas and provides REST APIs for CRUD operations. The frontend (dist folder) should be placed inside this directory — do not edit dist contents.

APIs

Method Endpoint Description
GET /api/employees Get all employees
GET /api/employees/:id Get single employee
POST /api/employees Add new employee
PUT /api/employees/:id Update employee
DELETE /api/employees/:id Delete employee

Setup

  1. Install dependencies:
    npm install
  2. Create a .env file with your MongoDB Atlas URI:
    MONGO_URI=your-mongodb-uri
    PORT=5000
  3. Place your frontend dist folder in this directory.
  4. Start the server:
    npm start
  5. Access the app at: http://localhost:5000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published