Giter Site home page Giter Site logo

rohan-cod / newspaper-app Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 28.0 2.11 MB

A web app using the Django framework. Frontend using HTML, CSS, javascript, and bootstrap. Add articles that can be viewed by anyone. Just make an account and you are good to go.

License: MIT License

Python 48.01% HTML 48.30% PowerShell 1.92% Batchfile 1.77%
python3 django html5 bootstrap github git slack zsh css javascript xml sqlite3 javascipt jquery ajax heroku pipenv hacktoberfest hacktoberfest2021 python

newspaper-app's Introduction

Newspaper App

A web app made using the django framework. Frontend using html and bootstrap and sqlite3 is used as the database. You can add articles which can be viewed by anyone. Just make an account and you are good to go.

Requirements

Python 3.8
Django 2.2.10 And additional requirements are in Pipfile.

Setting up the Project

  • Download and install Python 3.8
  • Download and install Git.
  • Fork the Repository.
  • Clone the repository to your local machine $ git clone https://github.com/<your-github-username>/newspaper-app.git
  • Change directory to newspaper-app $ cd newspaper-app
  • Install pipenv $ pip3 install pipenv
  • Create a virtual environment and install all requirements from Pipfile $ pipenv install
  • Activate the env: $ pipenv shell
  • Make migrations $ python manage.py makemigrations
  • Migrate the changes to the database $ python manage.py migrate
  • Create superuser $ python manage.py createsuperuser
  • Run the server $ python manage.py runserver

Deployment

Here's a list of steps to be followed for deploying an app to heroku:

  • Run pipenv lock to generate the appropriate Pipfile.lock $ pipenv lock
  • Then create a Procfile which tells Heroku how to run the remote server where our code will live. $ touch Procfile
  • For now we’re telling Heroku to use gunicorn as our production server and look in our .wsgi file for further instructions. Update Procfile with - web: gunicorn <project_name>.wsgi --log-file -
  • Next install gunicorn which we’ll use in production while still using Django’s internal server for local development use. $ pipenv install gunicorn==19.9.0
  • Finally update ALLOWED_HOSTS with '*' in settings.py file.
  • push the updates to the GitHub repository.
  • Login to heroku. $ heroku login
  • Create a new heroku app. $ heroku create <app_name>
  • Set git to use the name of your new app when you push to Heroku. $ heroku git:remote -a <app_name>
  • If there are no static files run $ heroku config:set DISABLE_COLLECTSTATIC=1
  • Push the code to Heroku. $ git push heroku master
  • Add free scaling so the app is actually running online. $ heroku ps:scale web=1

Contributing

Feel free to raise a issue or make a pull request to fix a bug or add a new feature. If you are new to open source you can first read about git by clicking here.

Communtiy Slack Channel

To get started, the first step is to meet the community. We use slack to communicate, and there the helpful community will guide you. Slack is an instant messaging service used by developers and users of GitHub. It uses chatrooms, where developers can join in and can talk about a particular topic. Click here to join our Slack Workspace.

Code Of Conduct

Check the code of conduct.

newspaper-app's People

Contributors

amancode27 avatar burakcank avatar cynideschizo avatar dependabot[bot] avatar dollyjain51099 avatar garg3133 avatar imgbotapp avatar mayankgeek avatar praneeth-rdy avatar rocker4 avatar rohan-cod avatar tusharnankani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

newspaper-app's Issues

Add search bar.

Add a search bar to search for different articles posted on the website.

Classify articles.

Use machine learning to classify the articles into positive and negative.

Profile Page

Add user profile page with details about user like the profile pic, name, e-mail, etc.

Latest News.

Use an api to get latest news and show them in a separate tab in the app.

Different link for article's comments.

Currently the comments link on every article's footer points to a single page with comments of all articles. Change this in such a way so that each link points to its own comments only.

Search

Recreate the search bar in such a way that its on the nav bar and users can search articles no matter which page they are on.

Add readme

Study the source code and make a readme for the project.

Enhancing the navbar

I have created a profile page and in that I have to enhance the navbar of the user profile page.

Add a sort option.

Add an option on articles page to sort articles according to different parameters possible.

option for comment from articles page

Add an option to add comment to an article directly from the articles page. The model for comment is already built, just add a link to add comment.

Voice Input

Add a button for Voice Input like google has for google assistant.

email to reset password.

Add email facility to reset password. The reset password facility is available. The link to reset the password is generated as soon as you press the reset password link. You just need to use the api that will send that link to the user.

Friends

Add a feature wherein user can send friend requests and a user can only see articles written by his friends.

Image not displaying.

After uploading and saving the image doesn't show up on the article_details page.

Improve the UI

Use html, css and javascript to improve the UI of the app.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.