This project consists of a backend server built with Node.js and a frontend application using React and Vite. The backend manages data and provides APIs, while the frontend offers a user interface for interaction.
/ICPC-MS-Project
│
├── /back # Backend server
│ ├── index.js # Main server file
│ ├── models/ # Mongoose models
│ ├── routes/ # API route definitions
│ ├── controllers/ # Business logic and route handling
│ ├── .env # Environment variables
│ └── package.json # Node.js dependencies
│
└── /front # Frontend application
├── src/ # React source files
├── index.html # Main HTML file
├── .env # Environment variables
└── package.json # Frontend dependencies
-
Clone the repository:
git clone https://github.com/Omar7001-B/ICPC-Assuit-MS/ cd ICPC-Assuit-MS -
Backend Setup:
- Navigate to the backend directory:
cd back - Install backend dependencies:
npm install
- Navigate to the backend directory:
-
Frontend Setup:
- Navigate to the frontend directory:
cd ../front - Install frontend dependencies:
npm install
- Navigate to the frontend directory:
-
Start the backend development server:
cd back npm run devStart -
Start the frontend development server:
cd ../front npm run dev
- Models: Defines the structure of the data using Mongoose schemas.
- Routes: Contains API endpoint definitions for handling requests.
- Controllers: Contains business logic for processing requests and interacting with models.
- Contains React components, utilities, and configuration files for the application.
Backend Dependencies:
express: A fast, unopinionated, minimalist web framework for Node.js.mongoose: MongoDB object modeling for Node.js.cors: Middleware to enable Cross-Origin Resource Sharing.dotenv: Zero-dependency module that loads environment variables from a.envfile intoprocess.env.
Frontend Dependencies:
react: A JavaScript library for building user interfaces.vite: A build tool that focuses on speed and performance.- Other dependencies as needed for the React application.
ICPC MS Team
This project is licensed under the ISC License.