Skip to content

harshsinghvi/queapi

Repository files navigation

🔥 QueAPI

Que Implementation Using API in Python.

A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. The difference between stacks and queues is in removing. In a stack we remove the item the most recently added; in a queue, we remove the item the least recently added.

made-with-python PyPI license PRs Welcome Open Source Love svg1 Maintenance

GitHub forks GitHub stars GitHub watchers

🚀 Deployments

Check out Latest Production Version https://queapi.vercel.app (Using Serverless Functions and MongoDB).

📘 API Documentation

Resource Parameters Response Description
/ None Html Web App to visualize QueAPI.
GET /que None Json Get complete queue in Json format.
GET /get None Json POP the element in the Que.
GET /put data Json PUSH an element in the Que (/push?data=<element>).

Usage

  • Clone the repo git clone https://github.com/harshsinghvi/stackapi && cd stackapi

  • Edit sample.config.py

    • Change the mongo MONGO_DB_URI
    • Rename to config.py
    • mv sample.config.py config.py
  • Install depndencies pip install -r requirements.txt

  • Run flask server python index.py

[Optional] To deploy it to vercel using serverless functions Install Vercel cli and deploy to production by running vercel --prod.

✨ Features

  • Serverless
  • Made Using JAM Stack
  • Static Web UI

👾 Contributors

👨‍💻Harsh Singhvi

Twitter Facebook Github LinkedIn

📜 Refrences