- Require download
- Java 17
- Maven
- Node 14+ (Node Version Manager recommended)
- Docker
- No download required
Clone the project
git clone [email protected]:<REPO>Go to the project directory
cd DMS/To run the database with Docker (recommended), run the following command:
docker compose upAlternatively, you can create services that will be run in the background:
docker compose up -dTo stop the database, run the following command:
docker compose downCreate a copy of the application-local.properties file.
cp ./backend/src/main/resources/application.properties.example ./backend/src/main/resources/application.propertiesIf you're running your database using Docker, the datasource variables should match the ones in Docker-compose.yml.
To build and run the backend, execute the following commands:
cd ./backend
mvn clean spring-boot:runCreate a copy of the example.env file named .env.
cp ./frontend/example.env ./frontend/.envNow, you need to install the dependencies:
cd ./frontend
npm iTo run the frontend, run the following command:
npm run devIn order to access the database, you can use the following command:
mysql -u root -p<password> -h 127.0.0.1 -P 7654 dmsdb