To preview the implementation, you'll need to:
Here's a quick guide to get started:
.env file in your project root based on the .env.example provided:VITE_AUTH0_DOMAIN=your-auth0-domain.auth0.com
VITE_AUTH0_CLIENT_ID=your-auth0-client-id
VITE_AUTH0_AUDIENCE=https://your-api-identifier# Install frontend dependencies
npm install
# Install backend dependencies (in the nest-backend directory)
cd nest-backend
npm install
cd ..# Run the frontend
npm run dev
# In a separate terminal, run the backend
cd nest-backend
npm run start:devDashboard Pages: Based on the selected role, you'll be redirected to the appropriate dashboard:
Each dashboard is protected and only accessible to users with the appropriate roles.
To fully test the implementation:
Would you like me to explain any specific part of the implementation in more detail?
Great! I see you've provided your Auth0 environment variables. Let's make sure these are properly set up in your application:
.env file in the root of your project and add these variables:VITE_BASE_URL="http://localhost:3000"
VITE_AUTH0_DOMAIN="dev-ew20puedqaszptqy.us.auth0.com"
VITE_AUTH0_CLIENT_ID="607JsiCwyn67ZcsgOhtuCdzMZKu148V5"
VITE_AUTH0_AUDIENCE="https://api.empsync.com".env file in the nest-backend directory with:AUTH0_DOMAIN="dev-ew20puedqaszptqy.us.auth0.com"
AUTH0_AUDIENCE="https://api.empsync.com"Now that your environment variables are set up, you can proceed with:
# Frontend dependencies
npm install
# Backend dependencies
cd nest-backend
npm install# Start the frontend (from the root directory)
npm run dev
# Start the backend (from the nest-backend directory)
npm run start:devConfigure Auth0:
hr_manager, employee, inventory_manager, admin)Test the application:
Is there anything specific about the implementation you'd like me to explain or modify?
You can send messages while the preview loads