A FastAPI project where customers can purchase products with installment policy.
View the Postmand API Documentation
Download Instalment Policy.postman_collection.json from the repository to get the full API collection.
- Email: [email protected]
- Password: AdminSh@p
- OTP and Gmail-based registration
- Basic authentication with role-based authorization
- The customer can purchase a product with an installment plan
- An email notification will be sent as a reminder before n days of the installment date
- Admin can download a weekly or monthly report of the customer who has due as a CSV file or a JSON response
- Admin can view a weekly or monthly Due vs. Paid Amount chart of customers
- Backend: Python, FastAPI, SQLAlchemy
- Frontend: HTML, CSS, JavaScript
- Database: PostgreSQL
-
Clone the repository:
https://github.com/MdTanvirHossainTusher/Installment-Policy.git
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Copy
.env.examplefile to.envfile and fillup the blanked values
-
Start the development server:
python run.py
-
Open your browser and navigate to
http://localhost:8000
-
Build and run the Docker container:
docker-compose up --build
-
Open your browser and navigate to
http://localhost:8000







