Repository files navigation Selar API - Minimal Flask Backend (Render-ready)
main.py - Flask API with /create-order and /get-orders endpoints.
requirements.txt - Python dependencies: Flask, requests, gunicorn.
render.yaml - Optional Render configuration for automatic deploy.
test_api.py - Local test script (set API_URL env var or edit directly).
Deploy on Render (quick steps)
Push this repo to GitHub.
On Render: New → Web Service → Connect repo selar-api.
Use Build Command: pip install -r requirements.txt
Use Start Command: gunicorn main:app --bind 0.0.0.0:$PORT
In the Render service settings, add environment variable SELAR_API_KEY with your Selar API key.
Deploy. Visit the service URL and call / to confirm it's running.
Do not hard-code your Selar API key in the code. Always store it in Render environment variables.
If you change the file name or app object name, update the start command accordingly.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.