Skip to content

Canfry/blog-plateform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Community Blog

Want to create a community blog platform where we can share our knowledge and learn from others. The project has a strong security configuration and a solid database.

To start the project

  1. Clone the project in the folder of your choice. Set up Python interpreter as Python 3.12
  2. Set up a Python environment:
python3 -m venv thenameofyourchoice(usually venv or .venv)
# Then activate it:
source thenameyouchose/bin/activate
  1. Install the packages:
pip install -r requirements.txt
  1. You will have to set up your own secret key and SQL database URI to make it work locally. For development I've used SQLAlchemy because it was easy to migrate to PostgreSQL.

  2. Run the code:

flask --app server run --debug
  1. To work locally you will need to put your environment variables: Email and Password are used to send email after submitting contact form. EMAIL= PASSWORD= SECRET_KEY= SQLALCHEMY_DATABASE_URI='sqlite:///posts.db'

Goals

  • I've used Bootstrap for styling layouts and forms. WTForms to generate automatically the forms.
  • I want to restyle the project using Tailwindcss.
  • To add post you have to put an URL for your background image, I want to incorporate a way to upload an image file but was facing issues so for the moment it stays like this.
  • Wanted to put MDEditor instead of CKEditor for the body of the create post form, but it didn't work. Would like to incorporate it to the project.
  • Really want to make the project grow and add functionalities.
  • You're invited to create pull requests for any suggestions or improvements on the project.

About

Create a blog platform for cimmunity to be able to share knowledge.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published