feat: initialize frontend with React, Vite, and Tailwind CSS
- Added package.json for project dependencies and scripts. - Configured PostCSS with Tailwind CSS. - Created main application structure with App component and routing. - Implemented API client for handling requests with Axios. - Developed authentication API for login, logout, and user verification. - Created entities API for managing virtual entities. - Implemented logs API for fetching dispatch logs. - Added navigation bar component for app navigation. - Created protected route component for route guarding. - Set up global CSS with Tailwind directives. - Configured main entry point for React application. - Developed basic Dashboard and Login pages. - Set up router for application navigation. - Added Jest testing setup for testing library. - Configured Tailwind CSS with content paths. - Set TypeScript configuration for frontend. - Created Vite configuration for development and production builds. - Added Nginx configuration for serving the application and proxying API requests.
This commit is contained in:
33
.env.example
Normal file
33
.env.example
Normal file
@@ -0,0 +1,33 @@
|
||||
# Copy this file to .env and fill in your values.
|
||||
# Never commit the actual .env file.
|
||||
|
||||
# ── Authentication ────────────────────────────────────────────────────────────
|
||||
APP_PASSWORD=changeme
|
||||
JWT_SECRET=change-this-to-a-long-random-secret-at-least-256-bits
|
||||
JWT_EXPIRATION_MS=86400000
|
||||
|
||||
# ── Database ──────────────────────────────────────────────────────────────────
|
||||
SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/condado
|
||||
SPRING_DATASOURCE_USERNAME=condado
|
||||
SPRING_DATASOURCE_PASSWORD=condado
|
||||
|
||||
# ── SMTP (email sending) ──────────────────────────────────────────────────────
|
||||
MAIL_HOST=mailhog
|
||||
MAIL_PORT=1025
|
||||
MAIL_USERNAME=company@condado.example
|
||||
MAIL_PASSWORD=
|
||||
|
||||
# ── IMAP (email reading) ──────────────────────────────────────────────────────
|
||||
IMAP_HOST=imap.example.com
|
||||
IMAP_PORT=993
|
||||
IMAP_INBOX_FOLDER=INBOX
|
||||
|
||||
# ── OpenAI ────────────────────────────────────────────────────────────────────
|
||||
OPENAI_API_KEY=sk-replace-me
|
||||
OPENAI_MODEL=gpt-4o
|
||||
|
||||
# ── Application ───────────────────────────────────────────────────────────────
|
||||
APP_RECIPIENTS=friend1@example.com,friend2@example.com
|
||||
|
||||
# ── Frontend (Vite build-time) ────────────────────────────────────────────────
|
||||
VITE_API_BASE_URL=http://localhost:80
|
||||
Reference in New Issue
Block a user