diff --git a/README.md b/README.md index a924890..effee35 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,10 @@ This repository is a **monorepo** for all frontend services of IMPHNEN. The monorepo includes three main applications: -1. **Gacha** - Application for gacha website. -2. **Backoffice** - Application for internal management. -3. **Dimentorin** - Application for mentoring services. +1. **Gacha** - Application for Gacha Website. +2. **Backoffice** - Application for Internal Management Website. +3. **Dimentorin** - Application for Mentoring Service. +4. **Landing Page** - Application for Landing Page. ## How to install @@ -24,6 +25,15 @@ This repository is a **monorepo** for all frontend services of IMPHNEN. The mono ## How to run +### Setup Environment Variables + +Before running the applications, you need to set up the environment variables. You can do this by copying the `.env.example` file to `.env` and modifying the values according to your needs. + +```sh +cd apps/{appname} +cp .env.example .env +``` + ### Development Use the following commands to run in development mode: @@ -40,6 +50,10 @@ Use the following commands to run in development mode: ```sh npm run dimentorin:dev ``` +- **Landing Page**: + ```sh + npm run landing:dev + ``` ### Build @@ -57,6 +71,10 @@ Use the following commands to build the applications: ```sh npm run dimentorin:build ``` +- **Landing Page**: + ```sh + npm run landing:build + ``` ### Production @@ -74,19 +92,22 @@ Use the following commands to run the applications in production mode: ```sh npm run dimentorin:prod ``` +- **Landing Page**: + ```sh + npm run landing:prod + ``` ### Storybook This repository uses Storybook to develop, test, and document UI components in an isolated and interactive environment. Below are the commands to work with Storybook: - **Run Storybook** - + This command starts Storybook in development mode, allowing you to view and test UI components interactively. ```sh npm run ui:storybook ``` - - **Run Unit Test** diff --git a/apps/backoffice/.env.example b/apps/backoffice/.env.example new file mode 100644 index 0000000..292a14c --- /dev/null +++ b/apps/backoffice/.env.example @@ -0,0 +1 @@ +VITE_API_URL= diff --git a/apps/dimentorin/.env.example b/apps/dimentorin/.env.example new file mode 100644 index 0000000..3452b5c --- /dev/null +++ b/apps/dimentorin/.env.example @@ -0,0 +1 @@ +VITE_API_URL= \ No newline at end of file diff --git a/apps/gacha/.env.example b/apps/gacha/.env.example new file mode 100644 index 0000000..292a14c --- /dev/null +++ b/apps/gacha/.env.example @@ -0,0 +1 @@ +VITE_API_URL= diff --git a/.env.example b/apps/landing/.env.example similarity index 66% rename from .env.example rename to apps/landing/.env.example index 8736213..cd9c155 100644 --- a/.env.example +++ b/apps/landing/.env.example @@ -1,13 +1,5 @@ -# API Endpoint -VITE_API_URL= - -# Payload CMS Secret Key (minimum 32 characters) CMS_SECRET=your-very-long-secret-key - -# PostgreSQL Connection String CMS_POSTGRES_URL=postgres://user:password@host:port/database - -# S3 Storage Configuration CMS_STORAGE_ENDPOINT=https://your-s3-endpoint.com CMS_STORAGE_ACCESS_KEY_ID=your-access-key-id CMS_STORAGE_SECRET_ACCESS_KEY=your-secret-access-key