Make sure the npm command is usable globally on the system. If it isn't then install node.js Make sure you have mariaDB installed on the system using port 3306
- Navigate to the
Jukeboxd > DatabaseSQLdirectory, then using mariaDB run theJukeboxd.sql,artists.sql,albums.sql, andtracks.sqlfiles in that order. This will take a few minutes, as it is adding a large dataset of artists, albums, and tracks.
- Open a terminal inside the root of
Jukeboxddirectory - Use
npm installto install node_modules needed to run the project. - Use
npm startto run the project.
- If you're using the VM, open the
Jukeboxd > client > package.jsonfile, and add the line"proxy": "http://127.0.0.1:8080",under"private": true,at the top. Additionally, change thestartscript in thescriptsto be"start": "PORT=4000 react-scripts start",. Finally, remove all instances ofhttp://localhost:8080from theclientdirectory. This can be done on vscode by using the search feature (CTRL + SHIFT + F), searching forhttp://localhost:8080, and leaving the replace field blank, then clicking replace all (CTRL + ALT + ENTER). NOTE: there is one instance ofhttp://localhost:8080outside of theclientdirectory, in theTestingdirectory. It occurs at the way bottom on line 1875 ofJukeboxd testing.postman_collection.json. Make sure you change that back to"value": "http://localhost:8080",. If you are not using the VM, then you can ignore the steps outline in this bullet point - Open a terminal inside the root of the
Jukeboxd > clientdirectory - Use
npm installto install node_modules needed to run the project. - Use
npm startto run the project.