Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Team Red

Installation Steps

Backend

  1. Navigate to the backend directory:

    cd backend
  2. Install dependencies:

    npm install
  3. Create a .env file in the backend directory and add your MongoDB connection string:

    MONGO_URI=mongodb://localhost:27017/studentteam
    
  4. Start the backend server:

    node server.js

Frontend

  1. Navigate to the my-react-app directory:

    cd my-react-app
  2. Install dependencies:

    npm install
  3. Start the frontend application:

    npm start

API Endpoints

  • POST /api/members: Add a new member.
    • Request Body: { name, role, email, contact, image }
    • Example:
      {
    "_id": { "$oid": "6811ef3f8addbb5346303ee6" }, "name": "Manas Sharma", "role": "Backend Developer", "email": "ms9508@srmist.edu.in", "contact": "6265586868", "image": "1746005823150.jpg", "__v": 0 }
    
    
  • GET /api/members: Get all members.
    • Response:
      [
        {
    "_id": { "$oid": "6811ef3f8addbb5346303ee6" }, "name": "Manas Sharma", "role": "Backend Developer", "email": "ms9508@srmist.edu.in", "contact": "6265586868", "image": "1746005823150.jpg", "__v": 0 }, ... ]
    
    
  • GET /api/members/:id: Get details of a specific member.
    • Response:
      {
    "_id": { "$oid": "6811ef3f8addbb5346303ee6" }, "name": "Manas Sharma", "role": "Backend Developer", "email": "ms9508@srmist.edu.in", "contact": "6265586868", "image": "1746005823150.jpg", "__v": 0 }
    
    

How to Run the App

  1. Start the backend server:

    cd backend
    node server.js
  2. Start the frontend application:

    cd my-react-app
    npm start

Contributing

Manas8114 (https://github.com/manas8114) ,Chetan (https://github.com/Chetanvikas1), Goverdhan (https://github.com/Goverdhan) image

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages