Do you find sometimes the need to share screenshots with friends? This project might be for you. You might also want to check the Chrome plugin in this repo to capture screenshots from Chrome and add them to the backend.
- Make sure to use Python3.10 or newer.
-
Fork/Clone
-
Create and activate a virtual environment:
$ python3 -m venv venv && source venv/bin/activate
-
Install the requirements:
(venv)$ pip install -r requirements.txt
-
Create a
.env
file in the root folder and add the following configuration:JWT_SECRET="some random secret key" JWT_ALGORITHM="HS256" DB_URL="sqlite:///database.db" TOKEN_TIMEOUT=30
-
Run the app:
(venv)$ python main.py
-
Test at http://localhost:8081/docs
Note: the random secret JWT_SECRET
can be generated for example
using a command like this one:
openssl rand -hex 32
Feel free to change any of the configuration variables in .env
to
match your needs.