This is a tool to validate, solve, and manage TA and PLA assignment at Worcester Polytechnic Institute.
Note
This is a T3 Stack project bootstrapped with create-t3-app.
You will need a POSIX style operating system to run this repo. Mac and Linux users are OK, but Windows users should use WSL.
This project uses nvm to manage Node versions. The .nvmrc file contains the Node version used locally and in CI.
To install nvm, use one of the following commands or read their docs here:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bashwget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bashThen install & use the correct version of Node:
nvm install # installs Node version specified in .nvmrc
nvm use # switches to the node versionThis project uses pnpm as the package manager. To install pnpm, run theses commands or visit their docs here:
corepack enable
corepack prepare pnpm@10.15.0 --activatenode -v # should be >=22
pnpm -v # should be >=10.15.0The app will NOT run without properly set environment variables.
Copy the example file (.env.example) into a .env file:
cp .env.example .envThe file will tell you what environment variables you need. When adding additional environment variables, the schema in src/env.js should be updated accordingly.
Warning
Never commit environment variables! Treat them like you would any other password.
If you would like to skip environment variable checking when running the app/command,
you will need to set the SKIP_ENV_VALIDATION to true.
This can be useful for CI/CD or when building w/ Docker.
Example:
SKIP_ENV_VALIDATION=true pnpm run devpnpm i
SKIP_ENV_VALIDATION=true pnpm run devPlease read the package.json file to see what kinds of scrips you can run.
Running pnpm run in the terminal will also give you the available commands.
This project uses Husky for managing git hooks.
The pre-commit hook runs lint-staged, which formats staged files with Prettier.
The CI workflow runs on pull requests and pushes to main.
CI checks lint, formatting, TypeScript types, unit tests, Cypress tests, and both Docker build targets.
Successful pushes to main publish application and migrator images to GHCR, tagged with the full commit SHA.
- Next.js: Framework docs
- NextAuth.js: Authentication
- Prisma: ORM
- Tailwind CSS: Styling
- tRPC: Typesafe REST API (it's also integrated with React Query)
- shadcn and shadcn.io: Component libraries
- Vitest & Cypress: Testing
See the CI and GHCR setup and deployment instructions for sts.cs.wpi.edu.