Skip to the section on starting the app if you have successfully ran it before.
🚧 Else, if running the app for the first time:
Ensure you have the following.
JAVA_HOMEenvironment variable set to your Java SDK location. (If not, see FAQ).env.localin the root directory. (If not, see FAQ)- Node.js installed. (If not, download at https://nodejs.org/en/download/. This is for
npm)
- Run
npm i -g json-server. - Run
npm iat the root directory. - Unzip
keycloak-15.0.2.zipin theserverfolder.
Go to the .scripts folder and run all the files. (Made for Windows. Edit the contents according to your OS if needed)
The following should now be accessible at
localhostat these ports by default.
- Client:
8081- Keycloak:
8080- Database:
3000
If otherwise specified by any of your CLI windows, do the following.
- Client: Ensure the
publicPathinvue.config.jsis the same.- Other: Edit the
.envfile to reflect those ports forVUE_APP_JSONSERVER_URLorVUE_APP_KEYCLOAK_URL.
If first-time user, register for an account. (If no verification email, check your spam inbox or quarantine page)
Use the following format and add your client keys and secrets for Spotify and PubNub accordingly for the functioning of the data and chat features.
VUE_APP_SPOTIFY_CLIENT_ID=
VUE_APP_SPOTIFY_CLIENT_SECRET=
VUE_APP_PUBNUB_PUB_KEY=
VUE_APP_PUBNUB_SUB_KEY=
- Download the JDK. (https://www.oracle.com/java/technologies/downloads/)
- Run the installation. Take note of the JDK download path.
- Go to your System Properties > Advanced > Environment Variables.
- Under System environment variables, click New and fill in the following for the respective fields:
- Name:
JAVA_HOME - Value: < JDK download path >
- Name:
- Find your
Pathenvironment variable and click Edit. Add this to the end of the string or otherwise:- < JDK download path >
\bin
- < JDK download path >
- Under System environment variables, click New and fill in the following for the respective fields:
"...cannot be loaded because running scripts is disabled on this system"
Possible solution:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
