Skip to content

Larriemoses/Eragon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

176 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discount Region

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.

🌐 Live Site

Access the live application here: DiscountRegion

📸 Screenshots

image

🛠️ Tech Stack

Frontend:

  • React
  • HTML, CSS, JavaScript([abhiappmobiledeveloper.medium.com][1])

Backend:

  • Python
  • Django
  • Django REST Framework

Database:

  • PostgreSQL

Deployment:

  • Frontend: Vercel
  • Backend: Render

📂 Project Structure


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

🚀 Features

  • 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])

🧑‍💻 Getting Started

Prerequisites

  • Python 3.12
  • Node.js and npm
  • PostgreSQL

Backend Setup

  1. Clone the repository:

    git clone https://github.com/Larriemoses/Eragon.git
    cd Eragon/coupon_backend
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate
    
  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up the database:

    Ensure PostgreSQL is running and create a database. Update the DATABASES setting in settings.py accordingly.

  5. Apply migrations:

    python manage.py migrate
  6. Run the development server:

    python manage.py runserver

Frontend Setup

  1. Navigate to the frontend directory:

    cd ../Coupon_Web
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

🐛 Troubleshooting

  • 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.

📬 Contact

For any inquiries or feedback:

About

A Coupon Code WebPage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors