Skip to content

DataUnion-app/rest_pollen

 
 

Repository files navigation

rest-pollen

Dev setup

  1. Install node and pollinations-ipfs
  2. Install this repo
# Install dependencies
pip install -e ".[test]"

# Install pre-commit hooks
brew install pre-commit
pre-commit install -t pre-commit
  1. Add your jwt secret to .env

Start the server:

python rest_pollen/main.py

Working with Docker

Build the image

docker build -t rest .

Start the dockererized backend:

docker run -p 5000:5000 --env-file .env rest

Sending requests

python test/client.py

Testing

pytest test --cov

API docs

Start a server, then open the openapi docs. Can be viewed in swagger editor.

About

REST API wrapper for our backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 36.3%
  • JavaScript 23.3%
  • CSS 19.7%
  • HTML 19.4%
  • Batchfile 0.5%
  • Makefile 0.4%
  • Other 0.4%