- Install NodeJS
- Open Command Prompt in Windows and type
$ npm install -g @vue/cli
- Navigate to the 'frontend' directory by typing
$ cd frontend
in the terminal - In the terminal, type
$ npm i
if it's your first time running the application, followed by$ npm run serve
- Make sure to run
createTables.sql
located inbackend/oop/database
before testing- local database is hosted on port: 8081
- Alternatively, connect to the deployed database here (Link: https://spring-boot-oop.herokuapp.com/)
- To switch between local database and heroku database:
- navigate to file
frontend/src/constants.js
- comment and uncomment accordingly dpeending on which database to connect to
- navigate to file
-
Download Apache Maven, unzip the folder to a meaningful directory then open 'Environment Variables' in Windows.
-
Inside 'User Variables' tab, select 'New', browse and select the unzipped Apache Maven bin folder, add the 'Variable name' as MAVEN_HOME.
-
Inside 'User Variables' tab, select 'New', browse and select the folder where you installed 'jdk-17.x.x.x', add the 'Variable name' as JAVA_HOME.
-
Restart your PC.
-
Navigate to the backend directory e.g.,
$ cd backend/oop
where the 'mvnw' file is located. -
Make sure Maven is installed first before running the following command
mvn spring-boot:run
- Download the Chrome Extension for Live Reload to enable live reload within the browser (without needing to click refresh)
- Install NodeJS(https://nodejs.org/en/)
- Open Command Prompt in Windows and type
$ npm install -g @vue/cli
- Navigate to the 'frontend' directory e.g.,
$ cd frontend
- run
$ npm i
if it's the first time running followed by$ npm run serve