Skip to content

LeoTeeuwen/Photon-SE

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photon

Photon is a full-stack web application consisting of:

  • Frontend: Next.js
  • Backend: Python w/ Websocket
  • Database: PostgreSQL

Start on Debian VM

  1. GOTO Development and follow the install_deps.sh instructions first.
  2. Open 2 terminals, one navigated to the backend folder and the other to the frontend folder.
  3. In the backend terminal, run the following command.
poetry run python src/main.py
  1. In the frontend terminal, run the following command.
pnpm run dev
  1. Open a browser window to https://localhost:3000

Shutdown

To shutdown the application, in each terminal window, use ctrl+c to stop each application.

Development

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.

Start Backend

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 

Start Frontend

cd frontend
npm install # or yarn / pnpm
npm run dev

Project Structure

.
├── backend/        # Python backend 
├── frontend/       # Next.js frontend
└── README.md

Notes

Ports:

UDP Recieve: 7500
UDP Transmit: 7501
Websocket: 8765

Names:

jaxbkr: Jackson Baker
analog-wizard: Alexander Spicer
Leo Teeuwen: Leo Teeuwen
natanojjj: Jonatan Chavez-Vasquez
TristanJ04: Tristan Jones

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.0%
  • Python 33.7%
  • Shell 2.0%
  • CSS 0.3%