DailySnaps is a Django based News website that retrieves news according to user's choice from various sources using endpoints NewsAPI.
This is a Django-based website that displays top news and related news using NewsAPI.
- User preferred news sections
- Categorical search of news
- Top news
- News viewing of various websites
- Filter by keyword
- Save user's loved articles.
- Tokenized Signup with confirmation in console(on local machine) or email.
- Dark Mode view
Follow these instructions to get a copy running on your local machine for development and testing purposes
Anaconda, Python 3.6, git and Virtual Environment (Conda environment of Anaconda preferred)
- Open up Terminal, and go into the directory where you want your local copy, e.g.
cd projects
- Download a copy
git clone https://github.com/RITIKHARIANI/DailySnaps.git
- Install a virtual environment
conda create --name djangoenv
- Start the environment in the projects folder.
conda activate djangoenv
- Install Django and its requirements using pip
pip install -r requirements.txt
- Generate a secret key for your django app using
python
then run python and type
from django.utils.crypto import get_random_string
then
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
then
get_random_string(50, chars)
and lastly
quit()
- Copy this result and in your website/website/settings.py file replace
SECRET_KEY = os.environ.get('DAILYSNAPS')
with
SECRET_KEY = 'your newly generated secret key here'
- In the directory that contains 'manage.py' file, run the following to set up the database
python manage.py makemigrations news
- When this has completed, run these migrations
python manage.py migrate
- Create a user profile to login with
python manage.py createsuperuser
- Create an account on newsapi.org and insert its API key in views.py
newsapi = NewsApiClient(api_key='API_KEY')
- Once you have followed the instructions to create a user, then run the server
python manage.py runserver
- If there were no errors anywhere, you can now go to http://localhost:8000/ in your browser to view a local copy of DailySnaps
Once you fill in the details and click Signup button, look inside your terminal/console. There will be a uniquely generated link. Copy paste that onto your broswer's address bar and press enter. You will automatically be redirected to the website with you logged in.
- Integrate it with Machine Learning Recommendation Systems based on user's saved articles.
- Make it mobile compatible
- Include a Share button to Share news among various social network platforms
- Make Ratings for articles
- Password Change Option
- Confirmation through Email
- Aditya Verma: https://github.com/adiver26
- Rahul Raman: https://github.com/Aiden-Frost ( updated profile )
- Ritik Hariani: https://github.com/RITIKHARIANI
- Romaanchan Skanda: https://github.com/Prix4Houdini
Special Thanks:
- Sourav Tecken: https://github.com/souravtecken