Skip to content

A backend to compare two things and vote for one of them.

License

Notifications You must be signed in to change notification settings

sheikhartin/thinga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thinga

GitHub repo status GitHub license GitHub contributors GitHub tag (latest by date) GitHub repo size

Compare and vote for the option you want to get a better rating!

How to Use

Install uv ("An extremely fast Python package and project manager, written in Rust."):

macOS and Linux Windows Using pip
curl -LsSf https://astral.sh/uv/install.sh | sh powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" pip install uv

To develop and contribute, install these tools:

Or run this code on your Unix-like operating system:

tools=(ruff pytest)
for tool in "${tools[@]}"; do
  uv tool install --force "${tool}"@latest
done

Make sure the tests pass before running the server:

pytest -rSp

Run the Thinga web application:

uv run uvicorn thinga.main:app --port 9906

Now go to http://127.0.0.1:9906 and use it!

The front-end codebase for this project is available on GitHub.

Automation Scripts

Collect images from DuckDuckGo based on a query easily:

uv run python scripts/image_collector.py 'Hollywood celebrities' --max-images 15

Upload collected images to the Thinga API:

./scripts/upload_collected_images.sh -u root -p toor

License

This project is licensed under the MIT license found in the LICENSE file in the root directory of this repository.

About

A backend to compare two things and vote for one of them.

Resources

License

Stars

Watchers

Forks

Packages

No packages published