Project for the Hackathon "Ai Ai Captain" Location: Bremen Date: 20.09.2024
This README provides instructions for building a .war file for a Spring backend and running an npm build for a frontend project.
project-root/
├── frontend/
│ └── artifact/
├── backend/
│ └── artifact/
└── README.md
-
Navigate to the backend directory:
cd backend/artifact -
Ensure you have Maven installed. You can check by running:
mvn -version -
Run the Maven package command to build the .war file:
mvn clean package -
The .war file will be generated in the
backend/artifactdirectory.
-
Navigate to the frontend directory:
cd frontend/artifact -
Ensure you have Node.js and npm installed. You can check by running:
node --version npm --version -
Install the project dependencies:
npm install -
Run the build command:
npm run build -
The built files will be generated in the
frontend/artifactdirectory.
- Make sure your
pom.xmlfile in the backend is configured to output the .war file to theartifactdirectory. - In your frontend's
package.json, ensure thebuildscript is set up to output files to theartifactdirectory.
For more detailed configuration, refer to the Spring and React/Vue/Angular (whichever you're using) documentation.