Coder Social home page Coder Social logo

ayushsanjdev / iread Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashutoshkrris/iread

1.0 0.0 0.0 10.53 MB

iRead is an open platform where readers find dynamic thinking, and where expert and undiscovered voices can share their writing on any topic.

Home Page: https://iread.ga

License: Mozilla Public License 2.0

Python 5.13% CSS 4.73% SCSS 10.28% HTML 76.46% JavaScript 3.40%

iread's Introduction

iRead | Where Dynamic Ideas Find You

iRead is an open platform where readers find dynamic thinking, and where expert and undiscovered voices can share their writing on any topic.

Features of iRead

Currently we support the following features :

  • Authentication and Authorization with OTP Verification
  • Social Login with Google OAuth2
  • CRUD on User's Profile
  • CRUD on Blog Posts
  • Rich Text Editor(using CKEditor) with Media Files Storage(using Cloudinary)
  • Search Blogs
  • Categories and Tags Filters
  • Like/Dislike/Comment/Reply/Share on Blog Posts
  • Follow/Unfollow Users
  • Show Notifications on Follow, Like and Comment
  • Twitter Bot to tweet about posts published on website as well as retweet and like user's post (if they share it on Twitter)
  • Bulletins(Newsletter) Subscription/Unsubscription
  • Payment Integration using Paytm and Razorpay

Technology Stack

Frontend: HTML, CSS(+ Bootstrap 4), JavaScript
Backend: Python/Django
Database: PostgreSQL

And additional requirements are in requirements.txt or Pipfile.

Demo

Demo Video

Bulletin Email

Bulletin email

Contributing

Setting-up the project

  • Fork the Repository.

  • Clone the repository to your local machine $ git clone https://github.com/<your-github-username>/iRead.git

  • Change directory to iRead $ cd iRead

  • Add a reference to the original repository
    $ git remote add upstream https://github.com/ashutoshkrris/iRead.git

  • Install venv $ pip3 install venv

  • Create a virtual environment $ python -m venv env

  • Activate the env: $ source env/bin/activate (for linux) > ./env/Scripts/activate (for Windows PowerShell)

  • Install the requirements: $ pip install -r requirements.txt

  • Create a new file in the root directory of the repository (iRead) with name .env (only .env and not .env.txt) and add the following content in it:

    DEBUG=True
    SECRET_KEY=ss)143p*@)jxwzge9-i26c40_9*r%p1l0&_*nlr-_*m+op#2^w
    DB_NAME=blog
    DB_USER=postgres
    DB_PASSWORD=postgres
    DB_HOST=localhost
    DB_PORT=5432
    EMAIL_HOST_USER='[email protected]'
    EMAIL_HOST_PASSWORD='password'
    CLOUD_NAME='cloudinary-cloud-name'
    API_KEY='cloudinary-api-key'
    API_SECRET='cloudinary-api-secret'
    GOOGLE_OAUTH_CLIENT_ID='google-key'
    GOOGLE_OAUTH_CLIENT_SECRET='google-secret'
    TWITTER_API_KEY='twitter-api-key'
    TWITTER_API_SECRET_KEY='twitter-api-secret-key'
    TWITTER_ACCESS_TOKEN='twitter-access-token'
    TWITTER_ACCESS_TOKEN_SECRET='twitter-access-token-secret'
    PAYTM_MERCHANT_ID='paytm-merchant-id'
    PAYTM_MERCHANT_KEY='paytm-merchant-key'
    RAZORPAY_KEY_ID='rzp-key-id'
    RAZORPAY_KEY_SECRET='rzp-key-secret'
    REDIS_URL=redis://127.0.0.1:6379/1
    

    or, just copy the .env.save file from samples directory to the root directory (iRead) and rename it to .env (only .env and not .env.txt)


    Note : You can also use Pipenv for virtual enviroment. You can find few related commands here.

  • Copy sample-db.sqlite3 from samples directory to the root directory (iRead) and rename it to db.sqlite3.

  • Make migrations $ python manage.py makemigrations

  • Migrate the changes to the database $ python manage.py migrate

  • Create admin $ python manage.py createsuperuser

  • Run the server $ python manage.py runserver

๐Ÿ’ก๏ธ Pro Tip:

  • Always keep your master branch in sync with the main repository (by running $ git pull upstream master on your local master branch).
  • Always create a new branch before making any changes ($ git checkout -b <new-branch-name>), never ever make any changes directly on the master branch.

๐Ÿ’ฅ How to Contribute ?

iread's People

Contributors

ashutoshkrris avatar imgbotapp avatar

Stargazers

Ayush Sanj avatar

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.