First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.js
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
Raised by Maria: Implement a pop-up in pages/sites/database/index.js
when the total number of sites is 0. Ask the user "Are you sure you want to delete this region?"
Repo Organization
This model follows from this example.
The repo will have two branches that will be present throughout the entire lifecycle of the project, master
and dev
.
master
will always represent production ready code, while dev
will always have the most recently developed code.
In addition, we will have supporting branches that will eventually be erased or merged into the dev
branch.
These feature branches will be named using the following syntax:
<initials>-<name-of-feature>
Team members will use the following process to develop a feature or bug fix:
-
First, create a feature branch using the syntax stated above.
-
Before making any changes, ALWAYS pull the most recent version of the project
git pull
. -
Makes changes in your local machine then push it to the
<initials>-<name-of-feature>
branch,git push origin <initals>-<name-of-feature>
. -
When your changes are ready for review, open a pull request to the
dev
branch. -
Pull requests require at least one other teammate to review and merge the code. Reviewer, please state a detailed comment for your approval.
-
The pull request creator SHOULD make any reasonable changes requested by the reviewers.
-
Archive the feature branch once it has been merged to
dev
. -
Once the
dev
branch is in a stable state (no bugs, significant work has been made since last merge tomain
), we will merge it to themain
branch. Merging to themain
branch requires all members to comment 🚢 (type:ship:
).
Follow Google's style guides for:
-
Natheethorn Teacharuangchit
-
Emmy Huynh
-
Maria Tilve
-
Joshua-Troy Meneses