🔥 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.
- Production Build https://quekapi.vercel.app
Check out Latest Production Version https://queapi.vercel.app (Using Serverless Functions and MongoDB).
- Old deployment https://queapi-app.herokuapp.com/ (Old with some Bugs).
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> ). |
-
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
.
- Serverless
- Made Using JAM Stack
- Static Web UI