Skip to content

Zenor27/naptaled

Repository files navigation

naptaled

How to install

python -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
python src/display_image.py

Run FastAPI locally

Make sure you have the virtual environment activated

fastapi dev app.py --port 8042

Run Client locally

cd client/
pnpm install
pnpm dev

How to deploy

You first need to add your ssh public key on the raspberry

ssh 192.168.10.223 -p 1030 -l napta
sudo su - piku
touch /tmp/<mysshkey>.pub
python3 piku.py setup:ssh /tmp/<mysshkey>.pub

Then on your machine you need to add the remote

git remote add piku piku@192.168.10.223:1030/naptaled

And you need to add the following to your ~/.ssh/config:

Host 192.168.10.223
 Hostname 192.168.10.223
 Port 1030

You are good to go, you can now deploy to the raspberry

cd client && pnpm build
git add <your changes>
git commit -m "your message"
./deploy.sh

To see logs running on the raspberry:

ssh 192.168.10.223 -p 1030 -l piku logs naptaled

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •