Discount Region is a full-stack web application designed to aggregate and display verified discount codes from top brands and prop firms. Built with a modern tech stack, it ensures users have access to the latest and most reliable promo codes.
Access the live application here: DiscountRegion
Frontend:
- React
- HTML, CSS, JavaScript([abhiappmobiledeveloper.medium.com][1])
Backend:
- Python
- Django
- Django REST Framework
Database:
- PostgreSQL
Deployment:
- Frontend: Vercel
- Backend: Render
Eragon/
├── Coupon_Web/ # Frontend React application
├── coupon_backend/ # Backend Django application
├── render.yaml # Deployment configuration for Render
├── package-lock.json # Frontend dependencies lock file
└── README.md # Project documentation
- User-Friendly Interface: Intuitive design for easy navigation and code retrieval.
- Real-Time Updates: Regularly updated discount codes to ensure users have access to the latest deals.
- Responsive Design: Optimized for both desktop and mobile devices.
- Interactive Feedback: Users can like, dislike, and mark coupons as used.
- Store Submission: Users can submit new stores or discount codes for inclusion.([github.com][2])
- Python 3.12
- Node.js and npm
- PostgreSQL
-
Clone the repository:
git clone https://github.com/Larriemoses/Eragon.git cd Eragon/coupon_backend -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Set up the database:
Ensure PostgreSQL is running and create a database. Update the
DATABASESsetting insettings.pyaccordingly. -
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Navigate to the frontend directory:
cd ../Coupon_Web -
Install dependencies:
npm install
-
Start the development server:
npm start
-
ModuleNotFoundError: No module named 'dj_database_url':
Install the missing package:
pip install dj-database-url-
ModuleNotFoundError: No module named 'corsheaders':
Install the missing package:
pip install django-cors-headers-
Cannot use ImageField because Pillow is not installed:
Install Pillow:
pip install Pillow-
Frontend not updating on coupon interaction:
Ensure that the frontend is correctly handling state updates after API responses. Check the console for any errors and verify that the API endpoints are returning the expected data.
For any inquiries or feedback:
- Email: larriemoses@gmail.com
- LinkedIn: linkedin.com/in/larriemoses
- Twitter: @larriemoses
