Photon is a full-stack web application consisting of:
- Frontend: Next.js
- Backend: Python w/ Websocket
- Database: PostgreSQL
- GOTO Development and follow the install_deps.sh instructions first.
- Open 2 terminals, one navigated to the backend folder and the other to the frontend folder.
- In the backend terminal, run the following command.
poetry run python src/main.py
- In the frontend terminal, run the following command.
pnpm run dev
- Open a browser window to https://localhost:3000
To shutdown the application, in each terminal window, use ctrl+c to stop each application.
Development dependencies:
To install the dependencies on the Debian VM, run the install_deps.sh shell script which will install node 22 and poetry
chmod +x install_deps.sh
./install_deps.sh
source ~/.bashrc
Else follow each individual dependency to develop on your own system.
Once you've installed the development dependencies, you can follow instructions to start each component.
cd backend
poetry install
poetry run python src/main.py
||
poetry run python src/main.py x.x.x.x # Enter IP address to change UDP network
cd frontend
npm install # or yarn / pnpm
npm run dev
.
├── backend/ # Python backend
├── frontend/ # Next.js frontend
└── README.md
UDP Recieve: 7500
UDP Transmit: 7501
Websocket: 8765
- Frontend will be available at http://localhost:3000
jaxbkr: Jackson Baker
analog-wizard: Alexander Spicer
Leo Teeuwen: Leo Teeuwen
natanojjj: Jonatan Chavez-Vasquez
TristanJ04: Tristan Jones