BruinBite.Launch.Video.mp4
BruinBite has a Next.js frontend, Go backend, and PostgreSQL database.
bruinbite/
├── frontend/ # Next.js frontend application
├── backend/ # Go backend server
└── db/ # Database configuration and migrations ## to-do?
Make sure you install Docker, which can be found at the provided link.
Start the PostgreSQL database using Docker Compose:
docker-compose up -dDISCLAIMER: These setup instructions are intended for Unix-like systems.
-
Navigate to the
backenddirectory:cd backend -
Run starter script to install dependencies and set up Python venv:
./start.sh
-
Close process and ensure your database connection variables are set in db.env (default should be fine for local production).
-
Start the backend server (the final command in this script contains
go run main.go):./start.sh
The backend server will start on http://localhost:8080, and automatically populate the tables with data from the UCLA website. You can test it by making a request to http://localhost:8080/ping
-
Navigate to the
frontenddirectory:cd frontend -
Install dependencies:
npm install
-
Edit .env.local file if necessary, stored at ./frontend/.env.local
-
Start the development server:
npm run dev
The frontend application will start on http://localhost:3000