This is the administration application for the Geekle platform. It provides interfaces for managing organizations, users, applications, and other administrative tasks.
- Node.js (v18 or higher)
- npm (v7 or higher)
-
Clone the repository:
git clone <repository-url> cd geekle-admin-app
-
Install dependencies:
npm install
The application uses several environment variables to configure service endpoints. Create a .env
file in the root directory with the following variables:
# Service Endpoints
VITE_USER_ADMIN_SERVICE=https://user-admin-service-u4q6fb7vaq-an.a.run.app
VITE_AUTH_SERVICE=https://auth-admin-service-u4q6fb7vaq-an.a.run.app
VITE_ORGANIZATION_SERVICE=https://organization-service-u4q6fb7vaq-an.a.run.app
VITE_CATALOG_SERVICE=https://catalog-service-u4q6fb7vaq-an.a.run.app
VITE_CHAT_SERVICE=https://chat-service-u4q6fb7vaq-an.a.run.app
VITE_ORDER_SERVICE=https://order-service-u4q6fb7vaq-an.a.run.app
Note: The default values are provided in the code, but you can override them with your own endpoints if needed.
To start the development server:
npm run dev
This will start the application in development mode. Open http://localhost:5173 to view it in the browser.
To build the application for production:
npm run build
The build artifacts will be stored in the dist/
directory.
To preview the production build locally:
npm run preview
To run the linter:
npm run lint
To automatically fix linting issues:
npm run lint:fix
To run TypeScript type checking:
npm run typecheck
src/
- Source codecomponents/
- Reusable UI componentsconstants/
- Application constants and configurationpages/
- Page componentsroutes/
- Route definitionstypes/
- TypeScript type definitionsutils/
- Utility functions
- Organization management
- User management
- Application review and approval
- Settings management
-
API Connection Issues: Ensure that the environment variables are correctly set and that you have access to the specified endpoints.
-
Build Errors: Make sure all dependencies are installed correctly with
npm install
. -
Type Errors: Run
npm run typecheck
to identify and fix type issues.
- Ensure your code follows the project's coding standards
- Run linting and type checking before submitting changes
- Make sure all imports are properly sorted (ESLint will auto-fix this with
npm run lint:fix
)