A modern web application built with Vue 3 and Express.js, designed to provide a seamless and interactive user experience.
- Frontend: Built with Vue 3 and Vite for a fast and responsive user interface.
- Backend: Powered by Express.js for handling API requests and business logic.
- State Management: Uses Pinia for state management in the frontend.
- Internationalization: Supports multiple languages with
vue-i18n. - Security: Implements security best practices with Helmet, CORS, and rate limiting.
- Database: Uses PostgreSQL for data storage.
- Authentication: Secure authentication with JWT and bcrypt.
- Vue 3: Progressive JavaScript framework for building user interfaces.
- Vite: Next-generation frontend tooling for fast builds and development.
- Pinia: Intuitive and type-safe state management for Vue.
- Axios: Promise-based HTTP client for making API requests.
- Vue Router: Official router for Vue.js applications.
- UnoCSS: Atomic CSS engine for styling.
- Lucide Icons: Beautifully crafted icon library.
- Express.js: Fast, unopinionated, minimalist web framework for Node.js.
- PostgreSQL: Powerful, open-source relational database.
- JWT (JSON Web Tokens): For secure authentication.
- Bcrypt: For password hashing.
- Helmet: Helps secure Express apps by setting various HTTP headers.
- CORS: Middleware for enabling CORS (Cross-Origin Resource Sharing).
- Morgan: HTTP request logger middleware.
- Nodemailer: For sending emails.
SevaAgent/
├── client/ # Frontend application
│ ├── public/ # Public assets
│ ├── src/ # Source code
│ ├── package.json # Frontend dependencies and scripts
│ └── README.md # Frontend-specific documentation
│
├── server/ # Backend application
│ ├── src/ # Source code
│ ├── scripts/ # Utility scripts
│ ├── package.json # Backend dependencies and scripts
│ └── index.js # Entry point for the backend
│
└── README.md # Project-wide documentation
- Node.js (v20.19.0 or higher)
- pnpm (v10.29.2 or higher)
- PostgreSQL
-
Clone the repository:
git clone <repository-url> cd SevaAgent
-
Install dependencies:
-
For the frontend:
cd client pnpm install -
For the backend:
cd server pnpm install
-
-
Set up environment variables:
- Create a
.envfile in theserverdirectory and add the necessary environment variables. Refer to.env.exampleif available.
- Create a
-
Run database migrations:
cd server pnpm db:migrate -
Seed the database (optional):
cd server pnpm db:seed
-
Start the backend server:
cd server pnpm dev -
Start the frontend development server:
cd client pnpm dev -
Open your browser and navigate to
http://localhost:5173(or the port specified in your Vite configuration).
-
Build the frontend:
cd client pnpm build -
Start the backend server:
cd server pnpm start
| Script | Description |
|---|---|
pnpm dev |
Start the development server. |
pnpm host:dev |
Start the development server with host mode. |
pnpm build |
Build the project for production. |
pnpm preview |
Preview the production build locally. |
pnpm lint |
Run linting on the project. |
| Script | Description |
|---|---|
pnpm dev |
Start the development server with Nodemon. |
pnpm start |
Start the production server. |
pnpm list:routes |
List all available routes. |
pnpm db:migrate |
Run database migrations. |
pnpm db:seed |
Seed the database with initial data. |
pnpm db:refresh |
Refresh the database (migrate and seed). |
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature). - Make your changes.
- Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin feature/your-feature). - Open a pull request.
This project is licensed under the ISC License. See the LICENSE file for details.