This project consists of two main components:
- Frontend: Built with Vite
- Backend: Built with Spring Boot
Make sure you have the following installed before proceeding:
- Git: Download and install
- Node.js (for vite frontend): Download and install
- Java 23+ (for Spring Boot backend): Download and install
- Maven (for building the backend): Download and install
To clone the repository, open a terminal and run:
git clone https://github.com/NextTrack-WAT-ai/Web-Application.git
cd your-repoNavigate to frontend folder
cd frontendInstall dependencies
npm install Run development build
npm run dev The Vite app should now be running on http://localhost:5173.
Navigate to root backend directory
cd ../spring-boot-appDo a clean build with Maven
mvn clean install Run the spring-boot app
mvn spring-boot:runThe backend should now be running at http://localhost:8080.
Ensure that you have MongoDB installed.
Also ensure that the mongoDB service is running as outlined in the docs above.
Navigate to the application.properties file on the backend
cd ../spring-boot-app/src/main/resources/application.propertiesEnsure that your application.properties file looks like the following:
spring.application.name=spring-boot-app
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.database=nexttrackStart mongoDB locally
mongoshCreate the nexttrack db
use nexttrackNavigate to the nexttrack db
db nexttrackYou should now have mongoDB set up!