A full stack app developed for research on Collaborative Playlists.
Tip: pay careful attention to which directory to perform each of these tasks in.
- In project root directory (
collab-playlist/
), runnpm ci
. - In the
client/
directory, runnpm ci
. - Create a
.env
file in the root directory formatted like.env.example
with the values after the equal signs filled in. Use the comments to guide you. - Create a
.env
file in theclient/
directory formatted likeclient/.env.example
with the values after the equal signs filled in. Use the comments to guide you. - Create an
ids.csv
file (or name it whatever you named DB_IDS in.env
) in thedb/
directory to list playlists and users in each group. Useids.csv.example
to guide you. You must first create playlists in Spotify using the "owner account" to get the playlist ids to put inids.csv
.
- You will need to run 3 commands in parallel. Usually the easiest way to do this is to open three terminals. In the following order:
- In the first terminal, in the project root directory, run
npm run build-watch
. - In the second terminal, in the project root directory, run
npm run watch
. - In another temporary terminal, in the project root directory, run
source .env
thencurl -XPOST -b admin_key=$ADMIN_KEY localhost:$PORT/admin/load-ids
. - In the third terminal, in the
client/
directory, runnpm start
. A browser will open with the app.
- In project root directory (
collab-playlist/
), runnpm ci
. - In the
client/
directory, runnpm ci
. - Create a
.env
file in the root directory formatted like.env.example
with the values after the equal signs filled in. Use the comments to guide you. - Create an
ids.csv
file (or name it whatever you named DB_IDS in.env
) in thedb/
directory to list playlists and users in each group. Useids.csv.example
to guide you. You must first create playlists in Spotify using the "owner account" to get the playlist ids to put inids.csv
.
- In the root directory, run
npm run build
. The output will be inbuild/
. - In the
client/
directory, runnpm run build
. The output will be inclient/build/
. - In the root directory, run
npm start
to start the server. - In another temporary terminal, in the project root directory, run
source .env
thencurl -XPOST -b admin_key=$ADMIN_KEY localhost:$PORT/admin/load-ids
.