Installation Guide¶
Prerequisites¶
- Node.js: Version 18 or higher. (20.10.0 Recommended)
- Package Manager: npm or yarn.
- Modern Browser: Chrome, Firefox, Edge, or Safari.
- Backend API: Properly configured and accessible.
Installation Steps¶
- Clone the Repository
git clone https://github.com/ricohjapon/admin-panel.git
cd admin-panel
- Install Dependencies
npm install
# or
yarn install
- Set Environment Variables
Create a .env file in the root directory with the following variables:
NODE_ENV=development
VITE_APP_APP_TITLE=Grafana Admin Panel
VITE_APP_PUBLIC_PATH=/
VITE_APP_BACKEND_URL=https://grafanabackrjp.testweb.makenai.es/api/
VITE_APP_PORT=4173
- Start the Development Server
npm run dev
# or
yarn dev
The application will be available at http://localhost:4173.
Production Deployment¶
- Build the Application
npm run build
# or
yarn build
- Serve Static Files
Copy the files in the dist directory to your web server or run it via server.js
npm run start
# or
node server.js