Skip to content

sebasutp/screenshot_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot Capture Backend in FastAPI

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.

Requirements

  • Make sure to use Python3.10 or newer.

Want to test this project locally project?

  1. Fork/Clone

  2. Create and activate a virtual environment:

    $ python3 -m venv venv && source venv/bin/activate
  3. Install the requirements:

    (venv)$ pip install -r requirements.txt
  4. 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
  5. Run the app:

    (venv)$ python main.py
  6. 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.

About

Backend in FastAPI for the screenshot capture plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages