Skip to content

A RESTful API built with Express.js and MongoDB for managing food and nutrition data. It supports CRUD operations (Create, Read, Update, Delete) on food items and allows for detailed nutritional information management.

Notifications You must be signed in to change notification settings

Athul64/food-and-nutrition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Food and Nutrition Data Management API - Frontend

This project is a RESTful API developed using Express.js, MongoDB, HTML, CSS, and JavaScript to manage food and nutrition data. The API allows users to perform CRUD operations (Create, Read, Update, Delete) on food items, making managing detailed nutritional information and related attributes easy.

Features:

  • Comprehensive Data Model:
    • Food Item Name, Food Group, Description
    • Nutritional Information (Calories, Macronutrients, Micronutrients, etc.)
    • Serving Size, Allergens, Ingredients, and more.
  • CRUD Operations:
    • Add, update, view, and delete food items.
    • Retrieve specific food items by ID.

Technologies Used:

  • Backend: Express.js with MongoDB for data storage.
  • Frontend: HTML, CSS, and JavaScript.
  • Testing: Postman for API testing.

API Endpoints:

Add a new food item

POST /api/foods

Retrieve all food items

 GET /

Retrieve a specific food item by ID

GET /api/foods/:id

Update a food item by ID

PUT /api/foods/:id

Delete a food item by ID

DELETE /api/foods/:id

Setup Instructions:

  1. Clone the repository.
  git clone https://github.com/yourusername/food-and-nutrition
  1. Install dependencies: npm install.
npm i
  1. Start the server: npm start.
npm run dev
  1. Open your browser and go to http://locathost:5173 to see the application in action

  2. Configure MongoDB connection.

  3. Use Postman to test API endpoints.

Deployed Version:

Deployed Link: Food and Nutrition

About

A RESTful API built with Express.js and MongoDB for managing food and nutrition data. It supports CRUD operations (Create, Read, Update, Delete) on food items and allows for detailed nutritional information management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages