Skip to content

GCipry3/Flask-Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-Blog

-( Server status : Offline for maintenance)

The project is a web-based blog application built using the Flask web framework and Flask-SQLAlchemy extension.

The backend of the application is powered by Flask and Flask-SQLAlchemy, which handle the server-side logic and database interactions respectively.

The frontend of the application is built using HTML, CSS, and Bootstrap, which provide the layout and styling for the website.

FirstPage

The application allows users to create, read, update, and delete blog posts, as well as manage user accounts and authentication. It also provides functionality for pagination and image uploads. Overall, the project provides a simple and clean blog platform for users to share their thoughts and ideas.

Application Deployment Scheme

DeploymentScheme

Deployment

For deployment, the project was deployed on an Amazon Web Services (AWS) Elastic Compute Cloud (EC2) instance, which is a virtual server that allows users to run their applications on the cloud.

The application is run using Gunicorn, a Python Web Server Gateway Interface (WSGI) HTTP server, and Nginx, a high-performance web server and reverse proxy.

These technologies work together to allow the application to handle multiple requests at once and provide a stable and fast performance. The combination of Gunicorn and Nginx also makes the application visible to the public by making it accessible through a web browser using a domain name or IP address.

  • The application IP address
    http://3.66.169.202/

Maintenance

The project is being maintained by Supervisor, a process control system. This allows for the automatic initiation of the application upon server startup, through the execution of the command :

    gunicorn -w 3 run:app

Supervisor also manages the logging aspect of the application, by directing any errors to flaskblog.err.log and any standard outputs to flaskblog.out.log for better monitoring and troubleshooting.

  • The Config File: ConfigFile

Run Locally

Clone the project

  git clone [email protected]:GCipry3/Flask-Blog.git

Go to the project directory

  cd Flask-Blog

Install dependencies

  • Install python3 , python3 virtual environment module and pip
  sudo apt install python3 python3-venv python3-pip
  • Create the virtual environment
  python3 -m venv .venv
  • Activate the virtual environment to separate all the necessary dependencies from the computer
  source .venv/bin/activate
  • Install the dependencies into the venv
  pip install -r requirements.txt

Start the server

  export FLASK_APP=run  
  flask run

Open the application

  • Access the localhost on port 5000 through your browser
  http://localhost:5000/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published