- Change directory into root of Maven project
cd search-engine/application
- Compile the Maven project and run it:
mvn clean package
java -jar target/engine-0.1.jar
Alternatively, you can run the mvn exec
plugin (faster):
mvn compile exec:java
Note: if you don't have Maven installed, use the Maven wrapper instead. Example:
./mvnw clean package
If you need to grant permissions on Mac for the Maven wrapper:
chmod a+x mvnw
- Compile the Maven project
mvn clean package
- Place the jar file in the server
scp ./target/engine-0.1.jar root@phatsearch.net:/root/applications/Search-Engine
- Restart the jar file (while logged into server)
service search-engine restart
- Test (while logged into server)
curl localhost:8080
Note: The frontend is using Bootstrap 4. Please only use Bootstrap 4!
- Change into the root directory of the frontend
cd search-engine/application/src/main/frontend
- Install the dependencies
npm install
- Run and go to localhost:8080 (or 8081):
npm run start
npm run build