Skip to content

Commit 06b9a38

Browse files
authored
docs: πŸ“šοΈ zotmeal-peterplate code quality (#44)
* chore(docs): πŸ”§ πŸ“šοΈ zotmeal -> PeterPlate * chore: πŸ”§ update codeowners and folder names * revert: βͺ️ revert peterplate team name to zotmeal until changed * docs: πŸ“šοΈ add committing & code quality * docs: πŸ“šοΈ update all links from zotmeal to peterplate
1 parent 5eafde5 commit 06b9a38

File tree

14 files changed

+83
-40
lines changed

14 files changed

+83
-40
lines changed

β€Ž.github/CODEOWNERSβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ content/docs/contributor/developer @icssc/api
77

88
content/docs/contributor/zotistics @icssc/zotistics
99

10-
content/docs/contributor/zotmeal @icssc/zotmeal
10+
content/docs/contributor/peterplate @icssc/peterplate
1111

1212
content/docs/contributor/zotmeet @icssc/zotmeet
1313

β€Žcontent/docs/contributor/index.mdxβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import { Workflow, UtensilsCrossed, Bird, CalendarRange } from "lucide-react";
4646
</Card>
4747
<Card
4848
icon={<UtensilsCrossed />}
49-
href="/docs/contributor/zotmeal"
50-
title="ZotMeal"
49+
href="/docs/contributor/peterplate"
50+
title="PeterPlate"
5151
>
5252
Dining Hall Menus
5353
</Card>

β€Žcontent/docs/contributor/meta.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"peterportal",
99
"anteaterapi",
1010
"zotistics",
11-
"zotmeal",
11+
"peterplate",
1212
"zotnfound",
1313
"zotmeet"
1414
],

β€Žcontent/docs/contributor/zotmeal/api/index.mdxβ€Ž renamed to β€Žcontent/docs/contributor/peterplate/api/index.mdxβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ title: API
44

55
import { ServerOff, Database } from "lucide-react";
66

7-
ZotMeal implements its very own API for use with the project. Information on
8-
how to extend the API and use it for ZotMeal can be found below.
7+
PeterPlate implements its very own API for use with the project. Information on
8+
how to extend the API and use it for PeterPlate can be found below.
99

1010
<Cards>
1111
<Card
1212
icon={<ServerOff/>}
13-
href="/docs/contributor/zotmeal/api/serverless"
13+
href="/docs/contributor/peterplate/api/serverless"
1414
title="Serverless"
1515
>
1616
Cron jobs
1717
</Card>
1818
<Card
1919
icon={<Database/>}
20-
href="/docs/contributor/zotmeal/api/trpc"
20+
href="/docs/contributor/peterplate/api/trpc"
2121
title="tRPC"
2222
>
2323
Database tasks

β€Žcontent/docs/contributor/zotmeal/api/serverless.mdxβ€Ž renamed to β€Žcontent/docs/contributor/peterplate/api/serverless.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Serverless Functions
44

55
import { File, Folder, Files } from "fumadocs-ui/components/files";
66

7-
As opposed to managing a server backend, ZotMeal uses serverless functions that are ran on-demand in the cloud, with AWS Lambda as our cloud service.
7+
As opposed to managing a server backend, PeterPlate uses serverless functions that are ran on-demand in the cloud, with AWS Lambda as our cloud service.
88

99
## Cron Jobs
1010

β€Žcontent/docs/contributor/zotmeal/api/trpc.mdxβ€Ž renamed to β€Žcontent/docs/contributor/peterplate/api/trpc.mdxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ We will now go into detail about each individual tRPC procedure.
113113
`getRestaurantsByDate`
114114
Queries the database for information on both restaurants corresponding to a given date.
115115
- Input: `Date`
116-
- Returns: `ZotmealData`
116+
- Returns: `PeterPlateData`
117117
## Stations
118118

119119
#### Services
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: Committing & Code Quality
3+
description: Keeping PeterPlate clean and maintainable for your team and the future.
4+
icon: Braces
5+
---
6+
7+
PeterPlate follows the [code quality practices](/docs/contributor/common/code-quality)
8+
established by the ICSSC projects board. To maintain a readable, maintainable,
9+
and extensible codebase, we utilize specific technologies and standards.
10+
11+
## Code Quality
12+
### Biome
13+
14+
Like many other ICSSC projects, we use [Biome.js](https://biomejs.dev/) to
15+
lint and format our code. We leverage [Husky](https://github.com/typicode/husky)
16+
to automatically run Biome, which lints and formats your code before it is
17+
committed and pushed.
18+
19+
#### Rules
20+
21+
Our Biome configuration can be found
22+
[here](https://github.com/icssc/PeterPlate/blob/main/biome.json). Here's a quick
23+
overview of our current rules, which are subject to change:
24+
25+
- Indent by two spaces
26+
- Line width is 80 characters
27+
- Double quote style
28+
- Always use semicolons
29+
- Organize imports
30+
31+
If you would like to suggest a new rule, please reach out to a PeterPlate project lead.
32+
33+
## Commits
34+
35+
We follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)
36+
specification for readable and consistent commit messages.
37+
38+
To ensure compliance, we use [commitlint](https://commitlint.js.org/). Similar to
39+
our code formatting, commit message format is enforced by Husky before each commit.

β€Žcontent/docs/contributor/zotmeal/getting-started.mdxβ€Ž renamed to β€Žcontent/docs/contributor/peterplate/getting-started.mdxβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ Make sure to have `docker` installed, which can be installed from [the official
4444

4545
<Steps>
4646
<Step>
47-
Clone the ZotMeal repository from GitHub:
47+
Clone the PeterPlate repository from GitHub:
4848
```bash
49-
git clone https://github.com/icssc/ZotMeal.git
49+
git clone https://github.com/icssc/PeterPlate.git
5050
```
5151
</Step>
5252

@@ -55,7 +55,7 @@ Navigate to the root directory and change your node version to the one specified
5555
</Step>
5656

5757
<Step>
58-
While still in the root directory, install the dependencies by running `cd ZotMeal && pnpm install`.
58+
While still in the root directory, install the dependencies by running `cd PeterPlate && pnpm install`.
5959
</Step>
6060

6161
<Step>
@@ -126,10 +126,10 @@ nvm use 20
126126

127127
## Structure Overview
128128

129-
The following directory tree outlines the major folders in the ZotMeal repository:
129+
The following directory tree outlines the major folders in the PeterPlate repository:
130130

131131
<Files>
132-
<Folder name="ZotMeal" defaultOpen>
132+
<Folder name="PeterPlate" defaultOpen>
133133
<Folder name="node_modules" />
134134
<Folder name="apps" defaultOpen>
135135
<Folder name="next" />
@@ -146,11 +146,11 @@ The following directory tree outlines the major folders in the ZotMeal repositor
146146

147147
The `node_modules` folder contains all ***Node.js*** packages that the repository uses.
148148

149-
The `apps` folder contains major endpoints that ZotMeal uses:
149+
The `apps` folder contains major endpoints that PeterPlate uses:
150150
- `apps/next` contains all of the frontend components and scripts used to build the web app, written in **Next.js**.
151151
- `apps/server` contains the scripts used to connect backend functions to AWS Lambda Serverless procedures.
152152

153-
The `packages` folder contains all the functionality of the backend of ZotMeal.
153+
The `packages` folder contains all the functionality of the backend of PeterPlate.
154154
- `packages/api` contains all the ***tRPC** procedures used
155155
- `packages/db` contains the database schema (written using ***DrizzleORM***)
156156
- `packages/validators` contains information used for type verification of API schemas used in the backend (written using ***Zod***)

β€Žcontent/docs/contributor/zotmeal/index.mdβ€Ž renamed to β€Žcontent/docs/contributor/peterplate/index.mdβ€Ž

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: ZotMeal
2+
title: PeterPlate (Formerly ZotMeal)
33
---
44

55
## About
66

7-
Navigating UCI's dining options at Brandywine and the Anteatery is now simpler and more informed with ZotMeal. This comprehensive menu viewer, available as a website and mobile app, is designed to enhance your campus dining experience. UCI students use ZotMeal to plan their daily meals and track progress toward their nutritional goals.
7+
Navigating UCI's dining options at Brandywine and the Anteatery is now simpler and more informed with PeterPlate. This comprehensive menu viewer, available as a website and mobile app, is designed to enhance your campus dining experience. UCI students use PeterPlate to plan their daily meals and track progress toward their nutritional goals.
88

9-
Key features of ZotMeal include:
9+
Key features of PeterPlate include:
1010

1111
- **_Detailed Menu Viewer_**: Browse current and upcoming menus, allowing you
1212
to strategically plan your meal swipes and never miss your favorite dishes.
@@ -15,11 +15,11 @@ access to comprehensive ingredient and allergen details for every meal.
1515
- **_Event Calendar_**: Stay updated on special dining hall events and limited-time offerings.
1616
- **_Dish Ratings_**: Contribute your own feedback to help fellow Anteaters discover the best of campus dining.
1717

18-
![A screenshot of the ZotMeal website homepage.](./zotmeal-screenshot.jpg)
18+
![A screenshot of the PeterPlate website homepage.](./peterplate-screenshot.jpg)
1919

2020
## Technology
2121

22-
ZotMeal consists of a Next.JS frontend with a shared backend. A summary of the libraries used in each are listed below.
22+
PeterPlate consists of a Next.JS frontend with a shared backend. A summary of the libraries used in each are listed below.
2323

2424
### Frontend
2525

@@ -41,4 +41,4 @@ ZotMeal consists of a Next.JS frontend with a shared backend. A summary of the l
4141

4242
## Contributing
4343

44-
We'd be happy to have your contributions to ZotMeal -- we're always looking to grow and change! Please see [Getting Started](/docs/contributor/zotmeal/getting-started) to learn how to contribute effectively.
44+
We'd be happy to have your contributions to PeterPlate -- we're always looking to grow and change! Please see [Getting Started](/docs/contributor/peterplate/getting-started) to learn how to contribute effectively.

0 commit comments

Comments
Β (0)