pip.exe install opencv-contrib-python --user
- Node.js: Install Node.js on your machine. You can download it from the official website: Node.js Downloads
- Run the following command to clone the repository:
git clone https://github.com/Fung1117/database-project.git
- Navigate to the project directory
cd ./frontend
-
Run the following command to install the project dependencies:
-
For Windows:
npm install
-
For Mac:
yarn install
Note: Use
npm install
on Windows andyarn install
on Mac. -
-
After the dependencies are installed, run the following command to start the development server:
-
For Windows:
npm run dev
-
For Mac:
yarn run dev
-
-
The development server will start, and you will see the URL where your app is running, http://localhost:5173.
- Navigate to backend directory:
cd ../backend
- We use local MySQL as database. Set "DB_PASSWORD" in the .env file to your password.
- Run the database.py file:
python database.py
- Install the required packages:
pip install -r requirements.txt
- Start the Flask server:
python server.py