Code Monkey home page Code Monkey logo

chefserver's Introduction

Public Endpoint: https://chef-server-sigma.vercel.app/

This is an API server for a Thai chef database that provides various endpoints to access the chef and recipe data. Here's a brief description of each endpoint:

  • "/" - This is the root endpoint that returns a message indicating that the Chef API server is running.

  • "/all" - This endpoint returns all the data available in the database.

  • "/chef/:id" - This endpoint returns the data for a specific chef identified by the "id" parameter in the URL.

  • "/chefsprofile" - This endpoint returns the profile data of all chefs in the database without their recipes.

  • "/chefsprofile/:chefID" - This endpoint returns the profile data of a specific chef identified by the "chefID" parameter in the URL without their recipes.

  • "/recipe/:id" - This endpoint returns the data for a specific recipe identified by the "id" parameter in the URL.

  • "/chefrecipe/:chefID" - This endpoint returns the recipes of a specific chef identified by the "chefID" parameter in the URL.

The API server is implemented using Express.js and uses the CORS middleware to allow cross-origin requests. The data is stored in a JSON file and is read by the server to respond to the requests. The server listens on port 5300 and logs a message to the console when it starts running.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.