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
.env
withNOTION_API_TOKEN
andAPI_URL
NOTION_API_TOKEN
is a token from a Notion integration. Also make sure to give it access to the relevant notion pages.API_URL
is the root url of the api (uselocalhost:5000
when developing and the real root url in production) runpython backend.py
andpython api.py
For production:
- create or pass in the environment variables described above
- run
docker compose up --build