This is a subscription management system built with Django.
- Python 3.6 or higher
- Django 3.2.8
Clone the repository or download the ZIP file:
git clone https://github.com/a-afra/subscription_system.git
cd subscription_system-master
Create a virtual environment and activate it:
python3 -m venv env
Activate the virtual environment:
On Windows:
env\Scripts\activate
On Unix or Linux:
source env/bin/activate
Install the dependencies:
pip install -r requirements.txt
Migrate the database:
cd src/subscriptionproject/
python manage.py makemigrations
python manage.py migrate
Create a superuser: Recomen: use 'admin' as username and password.
python manage.py createsuperuser
Run the development server:
python maange.py runserver
The application can now be accessed at http://localhost:8000/.
Important Step You have to add some plans before using the app.
To access the administration interface, go to http://localhost:8000/admin/ and log in with your superuser credentials.
- Log in as a superuser at http://localhost:8000/admin.
- Under the Subscription Plans section, click Add.
- Fill out the form with following content and create 3 new subscription plans.
Name | Price | Description |
---|---|---|
Basic | 10.0 | 2 VCPU 2 GB DDR4 30 GB Storage |
Professional | 15.0 | 4 VCPU 8 GB DDR4 140 GB Storage |
Advanced | 20.0 | 6 VCPU 16 GB DDR4 250 GB Storage |
Once you have set up the project, you can use it to manage subscriptions. There are also features to manage invoices.
- Navigate to the Plans page at http://localhost:8000/plans.
- Click the Subscribe button next to the desired plan.
- Invoices will be automatically created for subscribed users on a periodic basis.
- Navigate to the My Account page at http://localhost:8000/my-account.
- View the subscriptions and invoices.
- Navigate to the My Statistics page at http://localhost:8000/my-statistics.
- View the total number of invoices and spending per plan.