Git Product home page Git Product logo

django-blog's Introduction

Django blog:

This is my final project for course CS50's Web programming with Python and Javascript.
My website is about writing articles and sharing it with the others, choose appropriate categories for each article and interact with the articles of the others by adding comments.
My website template is powered by Bootstrap Blog Template with some modifications from me.
Website is powered by PostgreSQL database.

Technologies used:

  • Django
  • Django Rest framework
  • PostgreSQL
  • Javascript
  • HTML / HTML5
  • CSS / CSS3
  • Bootstrap4
  • Travic CI
  • Gunicorn web server
  • AWS S3 Bucket
  • Heroku for deployment

Installation

use the package manager pip to install required packages

pip install -r requirements.txt

For security reasons there are some sensetive informations that i didn't provide at settings.py file like:
Email Host - Secreyt key - AWS credentials.
so you need to provide those info using virtual environments or config.json file to be able to run the application, and both ways are provided at settings.py file.

Advantages of my website code:

There are some tricks that you can learn how to do from my website code:

  • Custom User model where Email field is required to login and must be unique.
  • Depend on AJAX request to add new comment (rather than default behavior which will redirect you to new form page to add new comment).
  • Use AWS S3 for scalability between server that will launch project code and server that will serve media files.
  • Use RichTextField that allows user to add photos, links, quotes..etc to the article.
  • Two default images for (Male & Female) and image will be associated with account according to gender.

Roadmap:

Things to be done in the future to enhance website:

  • Give user the ability to add new Category.
  • Send token to registeration email for confirmation.
  • Login using Gmail and Facebook.
  • Add marketing (When someone subscribes to website, he gets lates news from website).
  • Add more test cases to help for Continuous integration using Travis CI.
  • Chatting between users.

django-blog's People

Contributors

ahmedmunir 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.