Skip to content

FairportRobotics/TeamWebsite

Repository files navigation

Technologies

Tanstack Start

Tanstack Start provides full-document SSR, Streaming, Server Functions, bundling and more, powered by TanStack Router and Vite.

Tanstack Router

A powerful React router for client-side and full-stack react applications. Fully type-safe APIs, first-class search-params for managing state in the URL and seamless integration with the existing React ecosystem.

Better-Auth

Better-Auth provides APIS and hooks for us to code all the functiions necessary for us to implememnt authentication and some authorization.

Drizzle ORM

Drizzle is the ORM (Object Relational Mapper) that allows our application to communicate with the database.

date-fns Date processing and formatting.

FAQ

Install dependencies

Once you have cloned the source from GitHub, install the dependencies.

pnpm i

Get the database up and running in Docker if you want to run locally

We are using a Postgres instance hosted in Docker for local development work. Execute the following command to initialize and start the instance.

docker compose up -d

Generate Better-Auth schema

Anytime we change the Better-Auth configuration by adding or removing features, we will need to generate a new schema and manually incorporate those changes in the src/db/schema.ts file.

First, run the command which generates the schema required by Better-Auth:

pnpm run auth:generate

Next, open src/db/new-auth-schema.ts and compare to src/db/schema.ts. Migrate over any changes. Once complete, you can delete src/db/new-auth-schema.ts.

Push changes to the database

pnpm run db:push

Flush/fill database with seed data

pnpm run db:seed

Run the application locally

pnpm run dev

Run Drizzle Studio

Drizzle Studio is a useful UI for interacting with the database configured for use by Drizzle ORM.

pnpm run db:studio

Apply a shadcn preset to apply colors and other styles.

pnpm dlx shadcn@latest apply --preset b6WK0xowQq

Themes https://tweakcn.com/themes/cmlnfhvh2000004l7ggzsans1 https://tweakcn.com/themes/cmmadj6zx000204l23giib1s2 https://tweakcn.com/themes/cmmz25mmt000204l08j7sbxg6 https://tweakcn.com/themes/cmmab9sq4000004l58w1r3vak https://tweakcn.com/themes/cmlk6zefr000004lbe9jygsqc

NLAN

Sesi Theme 2

About

Team 578 Public Website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors