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
-
Install the package
pip install blog-app
-
Run the application
python blog-app -
Done
- The API will be available at
http://localhost:5000
- The API will be available at
Setup with Source Code
-
Clone the repository
git https://gitlab.com/y.karzal/2024_assignment2_blogpss cd 2024_assignment2_blogpss
-
Set up the application
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
-
Run the application
python run.py -
Done
- The API will be available at
http://localhost:5000
- The API will be available at
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.1.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blog_app-0.1.1.tar.gz.
File metadata
- Download URL: blog_app-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afb1e073449323fbf23dafcccaa70cbd3dd9120c138755bd7ed9a8b02431837d
|
|
| MD5 |
b177ab2e9904b6557bc15f80d3043e96
|
|
| BLAKE2b-256 |
b95c8be7cbbbc6fea5b9807c04f20f57fb11910df8109baff6c77eb3618d3636
|
File details
Details for the file blog_app-0.1.1-py3-none-any.whl.
File metadata
- Download URL: blog_app-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01b2b3e71f0854e0ca97c53e8352235baaa800a784599f194df210ffd314d309
|
|
| MD5 |
0e8ab2369241829c22560a9ebd9ec04a
|
|
| BLAKE2b-256 |
ae7392797ceb43065983193405ab70ed3d740356da2c75981a492369deda2fab
|