Git Product home page Git Product logo

personal-developer-blog's Introduction

Harrison's Developer Blog

I created a personal developer blog using Flask, Jinja, and Bootstrap. This website is a refactor of a bootstrap template in order to run on a Flask Webapp. The point of the blog would be to post articles about my career progression and projects as a software developer. I've created a few sample posts and comments to demonstrate the would-be functionality of the website.

Articles, users, and comments are stored on a local sqlite database, and retreived using Flask-SQLAlchemy.

I used gunicorn to deploy the webapp to Heroku for testing, but the app is currently not deployed to a live server.

๐Ÿ“š Tech Stack:

  • HTML, Jinja
  • CSS, Bootstrap
  • Flask
  • Sqlite / SQLAlchemy

๐Ÿงฐ Full CRUD operation:

  1. Create blog posts & comments
  2. View all blog posts & comments
  3. Update/Edit blog posts & comments
  4. Delete blog post & comments

๐Ÿ” User Sessions & Auth with Flask:

  • Login and Logout
  • Recognize administrator user
  • Protect routes from unauthorized users
  • View blog posts and post comments by user

How to Run the Webapp Locally:

Installation and Setup

  1. Clone the repository, and navigate to the webapp's directory:

    git clone <project_url>
    
    cd <project_directory>
  2. Install the package requirements:

    pip install -r requirements.txt
    
  3. Run the webapp:

    python3 server.py
    

Admin Login

  1. Using the site header, navigate to the Login page.

  2. Login with the following credentials:

    username: admin
    password: testpass
    
  3. You now have the ability to create, edit, and delete blog posts.

User Login:

  1. Using the site header, navigate to the Login page.

  2. Login with the following credentials:

    username: user2
    password: testpass
    
  3. You can now view the site of a regular user without admin privelages.

    • You can post comments
    • You can view posts, even when logged out.

Website Demo:

Website Demo

personal-developer-blog's People

Contributors

hschickdevs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

personal-developer-blog's Issues

Implement user avatars

Users should have avatars that are correctly displayed when they comment on a post.

See Harrisons-Blog/templates/post.html at line 56

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.