Skip to content

joaooliveira247/blog_api

Repository files navigation

💻 Requirements:

Installation & Running:

Docker

docker compose up -d

uv

This project uses a package and dependency maganer called uv. Installation guide

1º step: uv installation

curl -LsSf https://astral.sh/uv/install.sh | sh

2º step: Creating virtual enviroment and activating

uv venv
source .venv/bin/activate

Note:

On Linux and macOS, the commands to install and activate the virtual environment are the same. For Windows, please refer to the official documentation.

3º step: install all dependencies

uv sync --all-groups

Warning:

Please remember to configure the .env file. .env example file

📜 Documentation:

Database Diagram

▶️ Commands

uv run main.py update-role <user_id> <role(admin|dev|user)>

This command updates a user's role from the CLI. Updating a role via the API is only allowed if your role is admin.

uv run main.py run --host=<(optional|default=127.0.0.1)> --port=<(optional|default=8000)>

This command starts the API.

🐍 Usage libraries:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages