Skip to main content

A simple blog application with Flask

Project description

Blog Application

A simple blog application built with Flask.

Features

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

Package Structure

blog-app/
├── __init__.py
├── config.py
├── database.py
└── posts.py

Setup with PyPI Package

  1. Install the package

    pip install blog-app
    
  2. Run the application

    python blog-app
    
  3. Done

    • The API will be available at http://localhost:5000

Setup with Source Code

  1. Clone the repository

    git https://gitlab.com/y.karzal/2024_assignment2_blogpss
    cd 2024_assignment2_blogpss
    
  2. Set up the application

    python -m venv .venv
    source .venv/bin/activate
    pip install -r requirements.txt
    
  3. Run the application

    python run.py
    
  4. Done

    • The API will be available at http://localhost:5000

Testing (Unit and Integration) with Source Code

install pytest:

pip install pytest

Run backend unit tests:

pytest tests/unit

Run backend integration tests:

pytest tests/integration

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.2.tar.gz (6.2 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.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for blog_app-0.1.2.tar.gz
Algorithm Hash digest
SHA256 161054f7632674405fb386e7cb5253bf4e70bd87d44adae3ba913ec16c8449b4
MD5 0cfddb355b40dd42f5c4b3dc4cb360d1
BLAKE2b-256 9844a802e8adacdcaf24915f8af05eb7195eac20d1f0b01a2fca1bb4477375c3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for blog_app-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9326394c4953e77f51331f39b40a2c8e286cbdcd5adac357985eff8610ae9c3e
MD5 a196a96ebda5a4878a656e31778d215c
BLAKE2b-256 3c987171a34e802916b4e544819a62a208bfe3b9092dbc8aa2b98e57908606f0

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