The official website for CAFECA, dedicated to building a decentralized corporate infrastructure leveraging biometric technology and blockchain digital signatures.
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS v4
- Internationalization: next-intl
- Icons: React Icons
- Linting & Formatting: ESLint, Prettier
Ensure you have Node.js installed on your machine.
-
Clone the repository:
git clone https://github.com/CAFECA-IO/cafeca.com.tw.git cd cafeca.com.tw -
Install dependencies:
npm install
Start the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
To create an optimized production build:
npm run buildTo start the production server:
npm startTo build and serve the application on a specific port (e.g., 10015):
npm run swarmshell/auto_redeploy.sh pulls the latest code from GitHub and prints the current version. If there is an update, it rebuilds and restarts the pm2 service; otherwise it makes sure the service is running and starts it if not.
./shell/auto_redeploy.shOptional environment variables: APP_NAME (default cafeca.com.tw), PORT (default 10015), BRANCH (default: current branch), REMOTE (default origin).
src/app: Next.js App Router pages and layouts.[locale]: Dynamic route segment for internationalization.
src/components: Reusable UI components.common: Global components likeNavbar,Footer.landing_page: Components specific to the landing page sections.
src/locales: JSON translation files for supported languages.src/constants: Configuration constants and environment variable mappings.src/i18n: Configuration fornext-intl(routing, request handling).
This project supports multiple languages using next-intl. The supported locales are:
- English (
en) - Traditional Chinese (
zh-tw) - Default - Simplified Chinese (
zh-cn) - Korean (
ko) - Japanese (
ja)
The URL structure follows the pattern /[locale]/.... For example:
/zh-tw(Home - Traditional Chinese)/en(Home - English)
Copyright © CAFECA Fintech. All rights reserved.