Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.33 KB

README.md

File metadata and controls

25 lines (17 loc) · 1.33 KB

🦀 What is this project?

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.

Postman

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.

image