This is a new personal project I'm working on, a Coupon API for OldBot(my other project) where I validate coupons and license discounts.
The main technologies and features are:
- Rust
- Actix Web framework
- Tokio as asynchronous runtime
- SQLx as "kind of" the ORM
- MySQL database
- Redis for caching and storing sessions
- Docker container
- Simple
Bearer
authentication and session validation - Unit and integration test for all API endpoints
The application has been deployed on Heroku in a Docker container, and is live at https://coupon-api-oldbot.herokuapp.com/.
Since it requires authentication, you won't be able to interact with it. I will work on a demo version of it where others can interact with it in a test database in the future.
In this repository, you can also find the Coupon API.postman_collection.json
file, which you can import on Postman to have a template for the API calls of all endpoints available.