Skip to content

Files

Latest commit

 

History

History
58 lines (37 loc) · 1.3 KB

README.md

File metadata and controls

58 lines (37 loc) · 1.3 KB

Dub with Flask

This example shows how to use Dub with Flask

Getting Started

  1. Create and activate a virtual environment:
python3 -m venv .venv
source .venv/bin/activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Set your Dub API key as a environment variable:
export DUB_API_KEY="p4z..."
  1. Run the Flask app:
python app.py
  1. Create a new link:
curl -X POST http://localhost:5000/create-link

This will create a new link in your Dub workspace and display the API response in the browser.

Resources

Contributing

Thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody and are very appreciated.

Please try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

License

MIT License