Skip to content

Michael-kaku/selar-api-render-ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selar API - Minimal Flask Backend (Render-ready)

Files

  • 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)

  1. Push this repo to GitHub.
  2. On Render: New → Web Service → Connect repo selar-api.
  3. Use Build Command: pip install -r requirements.txt
  4. Use Start Command: gunicorn main:app --bind 0.0.0.0:$PORT
  5. In the Render service settings, add environment variable SELAR_API_KEY with your Selar API key.
  6. Deploy. Visit the service URL and call / to confirm it's running.

Important

  • 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

Releases

No releases published

Packages

 
 
 

Contributors

Languages