By Amar Kota - Hire me
This is an API project that delivers the RESTful endpoints that power the SaaS analytics web + mobile app Revenut at app.revenut.com.
Note
Please read https://github.com/hbcondo/revenut-app before getting started.
These instructions will get you a copy of the API up and running on your local machine for development and testing purposes.
git clone https://github.com/hbcondo/revenut-api.git
cd revenut-api
virtulenv env
source env/bin/activate
pip install -r requirements.txt
hypercorn app/main:app --reload
Create an .env
file in the root with these keys:
- STRIPE_API_KEY
- STRIPE_CLIENT_ID
- STRIPE_ACCOUNT_ID (optional)
(.venv) revenut-api % pytest
=========================== test session starts ===========================
platform darwin -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0
rootdir: /revenut-api
plugins: anyio-3.6.2
collected 2 items
app/test_main.py .. [100%]
============================ 2 passed in 0.40s ============================
- Error handling
- Persistence / Cache
If you like Revenut, please star this repo or consider sponsoring. If you want to make Revenut better, feel free to submit a PR, log an issue or contact me directly.
The Revenut source code is made available under the Apache 2.0 license.
- @hbcondo - idea & initial work