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/artifact
directory.
-
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/artifact
directory.
- Make sure your
pom.xml
file in the backend is configured to output the .war file to theartifact
directory. - In your frontend's
package.json
, ensure thebuild
script is set up to output files to theartifact
directory.
For more detailed configuration, refer to the Spring and React/Vue/Angular (whichever you're using) documentation.