This project is currently built with React + Vite.
PIRCA is a web application focused on the registration, management, and consultation of student information. This project is currently organized into two parts: Frontend and Backend.
This project was developed based on the work presented in the course Analysis and System Design (Análisis y Diseño de Sistemas). The architecture and data model of the application were derived from a class diagram that served as the foundation for defining the system’s entities, relationships, and responsibilities.
Make sure you have the following installed:
- Node.js (v18 or higher recommended)
- npm, yarn, pnpm, or bun
- React — UI library used in this project
- Vite — frontend build tool and development server.
- A PostgreSQL database configured for the backend API.
This project is separated into two main folders:
Backend/— contains the API and server-side logic.Frontend/— contains the web application built with React + Vite.
-
Clone the repository:
git clone https://github.com/username/repo-name.git cd repo-name -
Install dependencies in both folders:
cd Backend npm install # or yarn install # or pnpm install # or bun install
cd Frontend npm install # or yarn install # or pnpm install # or bun install
Note: All dependencies are already listed in
package.json. Running any of the install commands above will install them automatically.
Before starting the backend, create a .env file inside the Backend folder.
Example:
DB_USER=your_database_user
DB_HOST=localhost
DB_PASSWORD=your_database_password
DB_DATABASE=your_database_name
DB_PORT=5432
JWT_SECRET=your_jwt_secretThese variables are used to configure the database connection and JWT authentication in the backend. Using a .env file is a common way to keep configuration values separate from the source code.
Important: Do not upload the
.envfile to GitHub. Add it to.gitignoreto avoid exposing sensitive credentials, which is standard practice for environment-variable-based configuration.
To run the project correctly, you must start the backend and frontend separately.
Open a terminal and run:
cd Backend
npm run devOr, if your backend uses a different start script:
npm startOpen another terminal and run:
cd Frontend
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devVite uses npm run dev to start the local development server for the frontend.
Then open the local URL shown in the terminal, usually something like:
- The
Backendfolder must be running for the API to respond correctly. - The
Frontendfolder must be running for the web interface to be available. - Make sure the backend database credentials in
.envare correct before starting the API.
A typical structure for this React + Vite project includes:
src/— application source codesrc/App.jsxorsrc/App.tsx— main application componentsrc/main.jsxorsrc/main.tsx— entry pointpublic/— static assetsindex.html— main HTML filevite.config.jsorvite.config.ts— Vite configuration file.
Vite currently provides official plugins for React integration, including:
The React template referenced for Vite includes support information for the React Compiler. According to React’s documentation, the compiler can be used in modern React workflows, although enabling it may affect development and build performance depending on the project configuration.
To learn more about the tools used in this project, check the following resources:
This project represents the practical implementation of an academic system analysis and design exercise using modern frontend technologies. The migration from Next.js to React + Vite was made to improve comfort, simplicity, and development flow during the construction of the application.
