This is a smarthome school project. It has some iot and ai inference.
- node (Can use nvm to version management, I'm using nvm --lts so it's node v20.12.1 (npm v10.5.0))
- python
- docker compose
docker compose up
ordocker-compose up
(whatever works for you)cd app
- Create a virtual environment if needed, then
pip install -r requirements.txt
- Create the .env file from .env.example. And fill in the fields.
- Run backend:
uvicorn app:app --host 0.0.0.0 --port 8000
- Initialize the rooms in the database:
python database/scripts/init_light.py
cd smarthome
- Install dependencies, use:
yarn
ornpm install
. - Create the .env file from .env.example. And fill in the fields.
- Run the frontend:
yarn dev
(add--host
to expose ip).