Skip to content

About

CAFECA Fintech Company Official Website

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CAFECA Official Web

The official website for CAFECA, dedicated to building a decentralized corporate infrastructure leveraging biometric technology and blockchain digital signatures.

Technology Stack

Getting Started

Prerequisites

Ensure you have Node.js installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/CAFECA-IO/cafeca.com.tw.git
    cd cafeca.com.tw
  2. Install dependencies:

    npm install

Running Locally

Start the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Building for Production

To create an optimized production build:

npm run build

To start the production server:

npm start

Docker Swarm Deployment

To build and serve the application on a specific port (e.g., 10015):

npm run swarm

Auto Redeploy (pm2)

shell/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.sh

Optional environment variables: APP_NAME (default cafeca.com.tw), PORT (default 10015), BRANCH (default: current branch), REMOTE (default origin).

Project Structure

  • src/app: Next.js App Router pages and layouts.
    • [locale]: Dynamic route segment for internationalization.
  • src/components: Reusable UI components.
    • common: Global components like Navbar, 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 for next-intl (routing, request handling).

Internationalization (i18n)

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)

License

Copyright © CAFECA Fintech. All rights reserved.

About

CAFECA Fintech Company Official Website

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages