A public connector api between the LCSC website and our internal Notion database.
New data is pulled every 5 minutes.
For development,
- create a virtual environment
python -m venv .venv - enter venv
.venv/Scripts/activate - install requirements
pip install -r requirements.txt - create and populate
.envwithNOTION_API_TOKENandAPI_URLNOTION_API_TOKENis a token from a Notion integration. Also make sure to give it access to the relevant notion pages.API_URLis the root url of the api (uselocalhost:5000when developing and the real root url in production) runpython backend.pyandpython api.py
For production:
- create or pass in the environment variables described above
- run
docker compose up --build