This repository contains a demo project with two components:
- Backend: A Spring Boot application.
- Frontend: A Next.js application.
Ensure you have the following installed on your system:
- Node.js (LTS version)
- npm (comes with Node.js) or yarn
To clone this repository, run:
git clone <repository-url>
cd anydesk-demo
- Navigate to the
backend
directory:cd backend
- Build the application using Maven:
mvn clean install
- Run the application:
mvn spring-boot:run
- The backend will be available at http://localhost:8080.
- Navigate to the
anydesk-demo-frontend
directory:cd ../anydesk-demo-frontend
- Install dependencies:
or if you're using Yarn:
npm install
yarn install
- Start the development server:
or with Yarn:
npm run dev
yarn dev
- The frontend will be available at http://localhost:3000.
To run both the backend and frontend simultaneously:
- Open two terminal windows or tabs.
- In the first terminal, start the backend:
cd backend mvn spring-boot:run
- In the second terminal, start the frontend:
cd anydesk-demo-frontend npm run dev
- Make sure the backend service is running before using the frontend to avoid API errors.
- You can modify the backend and frontend configurations (like ports) if needed in their respective configuration files.
This project is licensed under the MIT License. See the LICENSE
file for more details.
If you encounter any issues, feel free to open an issue or contact the maintainers.