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.3.tar.gz
(7.4 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.3.tar.gz.
File metadata
- Download URL: blog_app-0.1.3.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bd6acd7c1de52ca325d30f34697536c2ba670aaca40ad193098911c46955c0f
|
|
| MD5 |
0270d916c6d7d3d7a8ae8605f32249a0
|
|
| BLAKE2b-256 |
72ed9088fefc5cae17ce12490149fd02d897c48b573a121dfa7d6a4264a9d005
|
File details
Details for the file blog_app-0.1.3-py3-none-any.whl.
File metadata
- Download URL: blog_app-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.6 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 |
c41915c46540434249fd831755c79c04a8501b1923aea123b6b7eb7e579cadc8
|
|
| MD5 |
699e548c670301d34d84c16bd6c834d9
|
|
| BLAKE2b-256 |
f3981411dacd805eb605e5f9b3ea9e66320e252a30aa35b0d4e8ecface49fb4b
|