GithubHelp home page GithubHelp logo

flyfir248 / blog-flask Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 211 KB

Flask blog

Home Page: https://flaskblog-r8ci.onrender.com

Python 31.28% HTML 64.66% CSS 4.01% Procfile 0.04%
blog blogging flask-application python3 sql sqlalchemy sqlalchemy-python sqlite sqlite-database webapplication

blog-flask's Introduction

Flask Blog

Flask Blog is a web application built with Flask, a lightweight web framework in Python. It allows users to create, publish, and manage blog posts.

Features

  • User registration and authentication system
  • Create, edit, and delete blog posts
  • View and comment on blog posts
  • User profile management
  • Responsive design for mobile and desktop devices

Installation

  1. Clone the repository:
git clone https://github.com/your-username/your-repo.git
  1. Change to the project's directory:
cd FlaskBlog
  1. Create a virtual environment:
python -m venv venv
  1. Activate the virtual environment:
  • On Windows (PowerShell):
.\venv\Scripts\Activate.ps1
  • On macOS and Linux:
source venv/bin/activate
  1. Install the required packages:
pip install -r requirements.txt
  1. Set up the database:
  • Create a PostgreSQL database.
  • Update the SQLALCHEMY_DATABASE_URI variable in the config.py file with your database URI.
  1. Start the application:
python run.py

The application will be accessible at http://localhost:5000.

Deployment

The application can be deployed on Render. To do so, follow these steps:

  1. Set up an account on Render (https://render.com/) if you haven't already.

  2. Create a new web service on Render.

  3. Configure the following settings in the Render dashboard:

  • Build Command: pip install -r requirements.txt
  • Start Command: gunicorn run:app
  1. Set up the required environment variables:
  • SQLALCHEMY_DATABASE_URI: The URI for your production database.
  • Other configuration variables as needed.
  1. Deploy the application.

Contributing

Contributions are welcome! If you'd like to contribute to Flask Blog, please follow these steps:

  1. Fork the repository.

  2. Create a new branch:

git checkout -b feature/my-new-feature
  1. Commit your changes:
git checkout -b feature/my-new-feature
  1. Push the branch to your forked repository:
git push origin feature/my-new-feature
  1. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

blog-flask's People

Contributors

flyfir248 avatar

Stargazers

Rajendra Agrawal 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.