idat

🍽️ Peruvian Food API

A simple REST API that provides information about traditional Peruvian dishes, built with Node.js and Express.

📋 Features

🚀 Quick Start

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/peruvian-food-api.git
    cd peruvian-food-api
    
  2. Install dependencies:
    npm install
    
  3. Start the development server:
    npm run dev
    
  4. The API will be available at http://localhost:3000

🛣️ API Endpoints

Method Endpoint Description
GET / Welcome message and available endpoints
GET /api/foods Get all foods (with optional filters)
GET /api/foods/:id Get a specific food by ID

Query Parameters

You can filter the /api/foods endpoint using the following query parameters:

Examples

📦 Project Structure

peruvian-food-api/
├── node_modules/
├── src/
│   ├── data/
│   │   └── foods.js        # Sample food data
│   ├── routes/
│   │   └── foodRoutes.js   # API routes for food resources
│   └── index.js            # Main application file
├── .gitignore
├── package.json
├── package-lock.json
└── README.md

🧰 Technologies Used

🔄 Future Improvements

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🌟 Acknowledgements

🤗 Social Media 🤗


Made with ❤️ by Elliot Garamendi as a learning project