Kenja is building AI search for e-commerce.
To set up our frontend, enter the frontend directory and then install dependencies:
npm installTo set up our backend, create a virtual environment and install dependencies.
python3 -m venv env
source env/bin/activate
python3 -m pip install -r requirements.txtAssuming all requirements are installed, first, run the backend API:
cd backend
uvicorn api:app --reloadThen, run the frontend:
cd frontend
npm run startWe use Black as our Python code formatter and Flake8 as our linter. To use both, install all of the requirements. To check Black, try:
black .To check Flake8, try:
flake8 .We also set up setup.cfg to configure Flake8 to meet Black style.
We use ESLint for linting and use the default VSCode formatter for formatting.
Notes on deployment are here!