Journey Bites 是一個專為旅行愛好者設計的部落格平台,在這裡,創作者可以自由地創作並分享他們的旅行遊記。無論是背包客的冒險故事、家庭度假的點滴,還是獨特的文化體驗,都能在這裡找到屬於自己的一片天地。
- 新增文章:創作者可以輕鬆新增並發布文章,分享他們的旅行經歷和見聞。
- 多媒體支持:支持圖片、影片等多媒體內容,讓遊記更豐富多彩。
- 追蹤功能:讀者可以追蹤他們喜愛的創作者。
- 評論與互動:讀者可以對文章進行評論,與創作者和其他讀者進行互動交流。
- 文章付費功能:創作者將可以設置文章為付費內容,通過優質內容獲取收益。
- 通知功能 : 第一時間獲取追蹤創作者的最新文章和更新。
- 更多方便功能:我們將不斷改進和新增功能,提升使用體驗,讓旅程分享更加便捷有趣。
https://journey-bites.zeabur.app/
不論你是想分享自己的旅行故事,還是想探索他人的冒險經歷,Journey Bites 都是你的最佳選擇。立即加入我們,開始你的旅程分享之旅吧!
This is the frontend application for Journey Bites.
Before running this project, you must have the following installed:
- Node.js (v20.9.0 or later)
- PNPM (v9.0.0 or later)
- Clone this repository to your local machine.
- Run
pnpm install
in the project directory to install all required dependencies. - Create a
.env.local
file at the root directory of the project and add the necessary environment variables. Refer to the.env.sample
file for the required variables.
Ensure the following variables are set in the .env.local
file:
NEXT_PUBLIC_API_BASE_URL=your_API_endpoint
- Run
pnpm dev
to start the application in development mode. - Run
pnpm build
to build the application. - Run
pnpm start
to start the application in production mode. - Run
pnpm lint
to lint the codebase. - Run
pnpm mock
to start the local mock server.
Available development scripts:
pnpm dev
: Starts the application in development mode.pnpm build
: Builds the application.pnpm start
: Starts the application in production mode.pnpm lint
: Lints the codebase.pnpm mock
: Starts the local mock server.
Technologies used in this project:
- Next.js: React framework
- React: JavaScript library
- React Query: Data fetching and state management
- Zustand: State management
- Tailwind CSS: CSS framework
- Radix UI: Accessible UI components
- ESLint: Linting tool
- Prettier: Code formatter
- TypeScript: Superset of JavaScript
- JSON Server: Tool to set up a simple REST API
To keep the commit history neat and easy to understand, we require all Git commit messages to follow the format:
[type]: [title]
-
type
build
:修改構建系統或外部依賴ci
:修改 CI 配置文件或腳本chore
:對非業務邏輯程式碼的更改,例如更新開發工具docs
:文件更新feat
:新增功能fix
:修復 bugperf
:改善程式的性能refactor
:重構程式碼,不添加新功能或修復 bugrevert
:還原先前的 commitstyle
:改善程式碼風格,例如縮排、空格等test
:增加或修改測試程式
-
title (sentence-case)
- 簡短地描述提交的改變。主題應遵循句子格式,即首字母大寫,其餘字母小寫。 Ex:
This is an example of sentence case.
- 簡短地描述提交的改變。主題應遵循句子格式,即首字母大寫,其餘字母小寫。 Ex:
build: Update eslint config for production
ci: Add GitHub Actions workflow for automated testing
chore: Update project dependencies to latest versions
docs: Add usage instructions to README
feat: Add new user registration feature
fix: Resolve login issue for locked accounts
docs: Update API documentation
perf: Optimize image loading for faster page rendering
refactor: Simplify error handling in API client
revert: Roll back to previous version of login form
style: Enforce consistent indentation with Prettier
test: Add unit tests for user registration endpoint