This repository hosts the official website for the UF chapter of the Society of Asian Scientists and Engineers (SASE), built by our wonderful Web Team! It uses a modern stack including Bun, TypeScript, React, Tanstack Router, Hono, and Drizzle. Staging Production
- IDE Recommendation: We recommend using Visual Studio Code (VSCode) as it offers great extensions for TypeScript and Tailwind CSS, which are automatically suggested when the project is opened.
- Package Manager: Ensure you have bun installed.
To get started, clone the repository to your local machine:
git clone https://github.com/ufsasewebmaster/UF-SASE-Website
cd UF-SASE-Website
After cloning the repository, install the required dependencies:
bun install
Create a .env
file in the root directory of the project with this format. For production values, refer to our env document, or otherwise refer to the corresponding documentation for generation.
DATABASE_URL="file:local.db" # Turso
DATABASE_AUTH_TOKEN=""
RESEND_API_KEY="" # Resend
GOOGLE_CLIENT_EMAIL="" # Google IAM
GOOGLE_PRIVATE_KEY=""
To set up the local SQLite database (the file:local.db
outlined above) and apply the schema, run:
bun db:all
Note in the package.json that this sets up everything related to the database.
To start the development server:
bun dev
The application should now be running at http://localhost:3000
.
Note: Ensure that you are generally not on the production database unless necessary for development.
- We automatically deploy the project to Vercel by pushing changes to the main branch.
The shared
directory contains code that is used by both the frontend and backend, including environment variable validation using Zod.
The backend entry point is ./server/index.ts
. It initializes the Hono app and sets up the database client. The database schema is defined in ./server/db/schema.ts
.
The frontend entry point is ./client/index.tsx
, which serves as the main React entry point. Routes are defined in the ./client/routes
folder, following the structure recommended by Tanstack Router. All static assets are located in the ./public
folder.