This is a T3 Stack project bootstrapped with create-t3-app
.
The environment secrets are temporary for course assignment, not used for production purposes, and are invalidated at any time if abused.
docker compose build
docker compose up
Then it will show that it's listening to the port 3000.
Then we can open http://localhost:3000/ on the browser.
-
run
npm install
-
Please make a copy of
.env.example
and rename it as.env
.Then make sure all the fields are filled, such as database url (please read the guidelines below for database installation)
-
run
npm run dev
to begin
For mac, refer to https://wiki.postgresql.org/wiki/Homebrew
You should follow the Conventional Commits.
If you're using VS Code, there's a good extension.
Common scenes:
chore: update diary
feat: add login page
fix: fix login router
docs: update README.md
build: modify Dockerfile
...
-
Create a new branch from
main
branch:git switch -c feature/add-new-component
for a new feature such as login page, then
feature/add-login-page
for a bug fix, then
fix/fix-a-bug
,for update your diary, then
chore/update-diary
-
When you're ready to push the branch, you can first
pull
andrebase
all the updates from themain
branch:git switch main git pull origin main git switch feature/add-new-component git rebase main
-
If there's any conflict, resolve it.
-
Now push your new branch and create a pull request.
-
Request a review and wait for the maintainer to review and merge the pull request.
no need to pay
To learn more about the T3 Stack, take a look at the following resources:
- Documentation
- Learn the T3 Stack — Check out these awesome tutorials
You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!