diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index ca11f07d..ee468930 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -1,63 +1,63 @@ name: Deploy Preview on: - pull_request: + pull_request: permissions: - contents: read - pull-requests: write + contents: read + pull-requests: write jobs: - Site: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: amondnet/vercel-action@v25 - with: - vercel-version: 32.6.1 - github-comment: | - - - - - - - - - - - - - -
NameIrvineHacks 2024 Site
PreviewVisit Preview
Commit{{deploymentCommit}}
- github-token: ${{ secrets.GITHUB_TOKEN }} - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ vars.VERCEL_ORG_ID}} - vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_SITE}} - Studio: - runs-on: ubuntu-latest - if: contains(github.event.pull_request.labels.*.name, 'sanity') - steps: - - uses: actions/checkout@v4 - - uses: amondnet/vercel-action@v25 - with: - vercel-version: 32.6.1 - github-comment: | - - - - - - - - - - - - - -
NameSanity Studio
PreviewVisit Preview
Commit{{deploymentCommit}}
- github-token: ${{ secrets.GITHUB_TOKEN }} - vercel-token: ${{ secrets.VERCEL_TOKEN }} - vercel-org-id: ${{ vars.VERCEL_ORG_ID}} - vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_STUDIO}} + Site: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: amondnet/vercel-action@v25 + with: + vercel-version: 32.6.1 + github-comment: | + + + + + + + + + + + + + +
NameIrvineHacks Site
PreviewVisit Preview
Commit{{deploymentCommit}}
+ github-token: ${{ secrets.GITHUB_TOKEN }} + vercel-token: ${{ secrets.VERCEL_TOKEN }} + vercel-org-id: ${{ vars.VERCEL_ORG_ID}} + vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_SITE}} + Studio: + runs-on: ubuntu-latest + if: contains(github.event.pull_request.labels.*.name, 'sanity') + steps: + - uses: actions/checkout@v4 + - uses: amondnet/vercel-action@v25 + with: + vercel-version: 32.6.1 + github-comment: | + + + + + + + + + + + + + +
NameSanity Studio
PreviewVisit Preview
Commit{{deploymentCommit}}
+ github-token: ${{ secrets.GITHUB_TOKEN }} + vercel-token: ${{ secrets.VERCEL_TOKEN }} + vercel-org-id: ${{ vars.VERCEL_ORG_ID}} + vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_STUDIO}} diff --git a/README.md b/README.md index bf624f49..212e569d 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,11 @@ -# irvinehacks-site-2024 +# irvinehacks-site ## Overview + This monorepo uses [turborepo](https://turbo.build/repo) with [pnpm](https://pnpm.io/) as a package manager. It contains the following: ### `apps/site` + A [Next.js](https://nextjs.org/) 13 project that uses the new app router. This app contains the IrvineHacks site. @@ -11,6 +13,7 @@ This app contains the IrvineHacks site. The development server runs at `http://localhost:3000`. If this port is taken, the next available port will be used. ### `apps/api` + A [FastAPI](https://fastapi.tiangolo.com/) project. This app contains the api for the IrvineHacks site. @@ -52,6 +55,7 @@ When running commands, use `pnpm` rather than `npm`. ### Python API 1. Ensure you are in `apps/api` with + ```shell cd apps/api ``` @@ -70,6 +74,7 @@ When running commands, use `pnpm` rather than `npm`. ```shell source .venv/bin/activate ``` + and for Windows, run ```shell @@ -91,13 +96,13 @@ This project uses Docker for testing API methods locally. A local MongoDB application will start running at `http://localhost:8081` after running `pnpm dev`. -*Note*: Because the Python files have been copied over to the Docker container, hot reload is no longer possible. Stopping the container and rerunning `pnpm dev` is the best option. +_Note_: Because the Python files have been copied over to the Docker container, hot reload is no longer possible. Stopping the container and rerunning `pnpm dev` is the best option. ### Build To build all apps and packages, run the following command in the project root. -*Note*: You would run this BEFORE opening a PR as a sanity check for errors. +_Note_: You would run this BEFORE opening a PR as a sanity check for errors. ```bash pnpm build @@ -114,6 +119,7 @@ pnpm dev ``` ## Helpful VSCode Extensions + - [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) for Python linting, intellisense, etc. - [Mypy](https://marketplace.visualstudio.com/items?itemName=ms-python.mypy-type-checker) for Python type checking - [Black](https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter) for Python code formatting @@ -132,9 +138,8 @@ This Turborepo includes the following packages/apps: - `eslint-config-custom`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`) - `tsconfig`: `tsconfig.json`s used throughout the monorepo - ### Utilities - [TypeScript](https://www.typescriptlang.org/) for static type checking - [ESLint](https://eslint.org/) for code linting -- [Prettier](https://prettier.io) for code formatting \ No newline at end of file +- [Prettier](https://prettier.io) for code formatting diff --git a/apps/site/src/app/(main)/guest-login/page.tsx b/apps/site/src/app/(main)/guest-login/page.tsx index ebd0556e..78fc7988 100644 --- a/apps/site/src/app/(main)/guest-login/page.tsx +++ b/apps/site/src/app/(main)/guest-login/page.tsx @@ -1,6 +1,6 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Guest Login | IrvineHacks 2024", + title: "Guest Login | IrvineHacks 2025", }; export { default as default } from "./GuestLogin"; diff --git a/apps/site/src/app/(main)/layout.tsx b/apps/site/src/app/(main)/layout.tsx index aa608dc1..2bd9b7ac 100644 --- a/apps/site/src/app/(main)/layout.tsx +++ b/apps/site/src/app/(main)/layout.tsx @@ -10,7 +10,7 @@ import NavbarParent from "@/lib/components/Navbar/NavbarParent"; import "./globals.css"; export const metadata: Metadata = { - title: "IrvineHacks 2024", + title: "IrvineHacks 2025", description: "IrvineHacks is Hack at UCI's premier hackathon for collegiate students.", }; diff --git a/apps/site/src/app/(main)/login/page.tsx b/apps/site/src/app/(main)/login/page.tsx index b0df624c..2e98430e 100644 --- a/apps/site/src/app/(main)/login/page.tsx +++ b/apps/site/src/app/(main)/login/page.tsx @@ -1,7 +1,7 @@ import { Metadata } from "next"; export const metadata: Metadata = { - title: "Log In | IrvineHacks 2024", + title: "Log In | IrvineHacks 2025", }; export { default as default } from "./Login"; diff --git a/apps/site/src/app/(main)/portal/@applicant/page.tsx b/apps/site/src/app/(main)/portal/@applicant/page.tsx index 12fc4a99..9d467bcc 100644 --- a/apps/site/src/app/(main)/portal/@applicant/page.tsx +++ b/apps/site/src/app/(main)/portal/@applicant/page.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; export const metadata: Metadata = { - title: "Portal | IrvineHacks 2024", + title: "Portal | IrvineHacks 2025", }; export { default as default } from "./ApplicantPortal"; diff --git a/apps/site/src/app/(main)/resources/page.tsx b/apps/site/src/app/(main)/resources/page.tsx index 71eb0f7b..7d11a1c5 100644 --- a/apps/site/src/app/(main)/resources/page.tsx +++ b/apps/site/src/app/(main)/resources/page.tsx @@ -6,7 +6,7 @@ import { getResources } from "./getResources"; export const revalidate = 60; export const metadata: Metadata = { - title: "Resources | IrvineHacks 2024", + title: "Resources | IrvineHacks 2025", }; export default async function Resources() { diff --git a/apps/site/src/app/(main)/schedule/page.tsx b/apps/site/src/app/(main)/schedule/page.tsx index 4c31b9d8..c0c3f375 100644 --- a/apps/site/src/app/(main)/schedule/page.tsx +++ b/apps/site/src/app/(main)/schedule/page.tsx @@ -9,7 +9,7 @@ import SchedulePage from "./sections/SchedulePage"; export const revalidate = 60; export const metadata: Metadata = { - title: "Schedule | IrvineHacks 2024", + title: "Schedule | IrvineHacks 2025", }; export default async function Schedule() { diff --git a/apps/site/src/app/admin/layout.tsx b/apps/site/src/app/admin/layout.tsx index 7275a135..5e729d16 100644 --- a/apps/site/src/app/admin/layout.tsx +++ b/apps/site/src/app/admin/layout.tsx @@ -3,7 +3,7 @@ import { Metadata } from "next/types"; import "@cloudscape-design/global-styles/index.css"; export const metadata: Metadata = { - title: "Admin | IrvineHacks 2024", + title: "Admin | IrvineHacks 2025", }; export { default as default } from "./layout/AdminLayout";