Application for reading, searching through and checking sources of online news articles.
Work in progress.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Python: 3.12
Django: 5.0
- Clone the repository
git clone https://github.com/tomson611/NewsRead.git
- Create your own virtual environment
python3 -m venv venv
source venv/bin/activate
- Install requirements
pip install -r requirements.txt
- Generate a new secret key
You can use Djecrety to quickly generate secure secret keys.
- Make your migrations
In your terminal:
$ python manage.py makemigrations$ python manage.py migrate
- Create a new superuser
python manage.py createsuperuser
- Get a NewsAPI API key.
- Create a local_settings.py file in the newsread directory.
- Create an API_KEY variable and provide the key from step 7.
- Run the dev server
python manage.py runserver
You can deploy on any hosting of your choice for example PythonAnywhere
- Django - The web framework used
- Requests - HTTP library for Python
- NewsApi - News API is a simple, easy-to-use REST API that returns JSON search results for current and historic news articles published by over 80,000 worldwide sources.
- Tomasz Wesołowski - Initial work - tomson611
This project is licensed under the MIT License - see the LICENSE.md file for details