Skip to content

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

  1. Clone the Repository
git clone https://github.com/ricohjapon/admin-panel.git
cd admin-panel
  1. Install Dependencies
npm install
# or
yarn install
  1. 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
  1. Start the Development Server
npm run dev
# or
yarn dev

The application will be available at http://localhost:4173.

Production Deployment

  1. Build the Application
npm run build
# or
yarn build
  1. 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