Coder Social home page Coder Social logo

hanibashir / blog50 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.92 MB

My final project in CS50 is a blog with a dashboard. Users must register or login to add posts, categories and comments. Each user has their own control panel where they can control their posts and profiles.

Python 45.75% CSS 1.36% HTML 52.89%
bootstrap cs50x css edx-cs50 flask html python3

blog50's Introduction

Blog50 | CS50x Final Project

Video Demo: https://youtu.be/FRiOKu7olwM

YouTube Video

Final-Project

Blog50 is a web app built with flask to submit as cs50x final project.

Description:

My final project in CS50 is a blog with a dashboard. Users must register or login to add posts, categories and comments. Each user has their own control panel where they can control their posts and profiles.

Features

  • Add posts and categories.

  • User's Profile.

  • Login and Register.

  • Author Page to view all posts by that author.

  • Category Page to view all posts in specific category.

Directories and Files:

  • project - Main Directory.

    • db - contains sql tables script file.

      • project_db_script.sql - sql tables script file.
    • falsk_session - contains session generated files.

    • static - Holds all static files.

      • images - Holds all static images and icons.

        • posts - Holds all posts images.

        • users - Holds all users images.

        • user-blue-thumbnail.png - user default image.

      • favicon.ico - Blog favorite icon.

      • styles.css - Css file.

    • templates - Holds all html files.

      • layout.html - Blog template.

      • index.html - Blog main page.

      • apology.html - Errors messages template.

      • category.html - Show posts in specific category.

      • post.html - Show specific post.

      • dashboard - Contains all dashboard html files.

        • layout.html - Dashboard template.

        • index.html - Dashboard main page.

        • new_post.html - Add new post.

        • edit_post.html - Edit post.

        • new_cat.html - Add new category.

        • edit_cat.html - Edit category.

      • user - Contains all user html files.

        • login.html - Login page.

        • register.html - Register page.

        • profile.html - Register page.

    • views - Contains all routes files.

      • blog.py - Control blog routes.

      • dashboard.py - Control dashboard routes.

      • user.py - Control user routes.

    • app.py - app main file.

    • db.py - all db queries.

    • helpers.py - helper functions.

    • project.db - The blog database.

    • requirements.txt - Project required dependencies.

How to run the application

  • Install project dependencies by running pip install -r requirements.txt

  • Run flask run and visit the link that appears on the command line.

blog50's People

Contributors

hanibashir avatar

Watchers

 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.