This is a simple web application that fetches articles from a Reddit subreddit using the Reddit API. The application has both a backend and a frontend component.
Before running this application, make sure you have the following prerequisites:
- Python installed on your system.
Follow these steps to set up and run the Reddit Wrapper web application:
-
Clone the Repository:
git clone https://github.com/your-username/reddit-wrapper.git
-
Navigate to the Project Directory:
cd reddit-wrapper
-
Install Dependencies:
To install the project dependencies from the
requirements.txt
file, run:pip install -r requirements.txt
-
Run the Development Server:
Start the Django development server:
python manage.py runserver
-
Access the Application:
Open a web browser and go to
http:https://localhost:8000/get_articles/
. You should see the list of the latest 10 threads from your chosen subreddit. -
Customize Styling (Optional):
If you want to customize the styling of the application, you can modify the CSS styles in the
reddit_api/templates/reddit_api/threads.html
file.
- Reddit for providing the API that makes this project possible.
- The Django and Python communities for their valuable tools and resources.
- Chatgpt for some professional documentation
- Haard Shah
Happy coding!