Skip to main content

A simple blog application with Flask backend

Project description

Blog Application

A simple blog application built with Flask and HTML/JavaScript.

Features

  • View all blog posts
  • Add new posts
  • Automatic timestamps for each post

Setup

  1. Clone the repository
git https://gitlab.com/y.karzal/2024_assignment2_blogpss
cd 2024_assignment2_blogpss
  1. Set up the backend
cd backend
python -m venv venv
source venv/bin/activate  # On Windows use: venv\Scripts\activate
pip install -r requirements.txt
  1. Run the application
python app.py
  1. Open the frontend
  • Open frontend/index.html in your browser
  • The API will be available at http://localhost:5000

Project Structure

blog-app/
├── backend/
│   ├── app.py
│   ├── database.py
│   ├── requirements.txt
│   └── tests/
└── frontend/
    ├── index.html
    ├── css/
    └── js/

Testing

Run backend tests:

cd backend
pytest tests/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blog_app-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blog_app-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file blog_app-0.1.0.tar.gz.

File metadata

  • Download URL: blog_app-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for blog_app-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db524717eca6407d0ce67cca7a6d985170f1617ea667e0d733ea728fee0db97a
MD5 733a600090170bb316260e71d708d810
BLAKE2b-256 4e3dbe09ca5b54525873e27444c6eacf806427a6d1361f895ee6e144a1dbed74

See more details on using hashes here.

File details

Details for the file blog_app-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: blog_app-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for blog_app-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f59ff0248ec9db6ea869413b60b14f634be1dbd70a05cc7de9c9cd4b8f9a8fb
MD5 4433ced1ced375b5056e9e9ef32221bc
BLAKE2b-256 39e24644d0858467a6de65f85813631935a6342b2c49c80676f10c29532e8f49

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page