E-Trans Documentation
Developed by Pratik Dimble | Tested by Swapnil Kharat Contact Me

Installation & Setup (Local Environment)

This guide explains how to set up the E-Trans Dashboard on your local machine, including backend, frontend, and database configuration.


1️⃣ Clone the Repository

Required request for Repository access

git clone https://github.com/yourusername/e-trans-dashboard.git
cd e-trans-dashboard

2️⃣ Backend Setup (Spring Boot + PostgreSQL)

a. Configure PostgreSQL

  1. Install PostgreSQL if you haven’t already.
  2. Create a database, e.g., etrans_db.
  3. Update backend/src/main/resources/application.properties:
spring.datasource.url=jdbc:postgresql://localhost:5432/etrans_db
spring.datasource.username=your_db_user
spring.datasource.password=your_db_password
spring.jpa.hibernate.ddl-auto=update

b. Run the Backend

cd backend
./mvnw spring-boot:run

The backend will start on http://localhost:8080 by default.


3️⃣ Frontend Setup (Vue 3 + Pinia)

a. Install Dependencies

cd frontend
npm install

b. Run the Frontend

npm run dev

Open your browser at http://localhost:5173 (or the port shown in the terminal).


4️⃣ Authentication Module

The dashboard uses Pinia for state management. The auth store handles login, signup, and session management:

import { useAuthStore } from '@/stores/auth'

const authStore = useAuthStore()

// Login
await authStore.login('username', 'password')

// Signup
await authStore.signup('username', 'password')

// Logout
authStore.clearAuth()

Key features:


5️⃣ Environment Variables (Optional)

If using a .env file for frontend:

VITE_API_BASE_URL=http://localhost:8080

Make sure the frontend points to the backend API correctly.


6️⃣ Ready to Use

Once both backend and frontend are running:


⚡ Notes