Skip to content

JMPerez/c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

55dfa65 · Oct 28, 2020

History

25 Commits
Mar 7, 2019
Nov 22, 2018
Apr 7, 2020
Mar 7, 2019
Sep 28, 2018
Mar 7, 2019
Sep 28, 2018
Mar 7, 2019
Apr 6, 2020
Aug 21, 2017
Aug 21, 2017
Apr 6, 2020
Aug 21, 2017
Apr 6, 2020
Apr 6, 2020
Aug 18, 2017
Aug 21, 2017
Apr 7, 2020
Apr 6, 2020
Oct 28, 2020

Repository files navigation

C - A collaborative listening room using Spotify

This project is a site where multiple users can propose songs and vote for them, having them played in a synchronised way through Spotify.

Setting up

The server can be run locally and also deployed to Heroku. You will need to register your own Spotify app and set the credentials in a couple of config files. For that:

  1. Create an application on Spotify's Developer Site.

  2. Add as redirect uris both http://localhost:3000/auth/callback (for development) and <production_domain>/auth/callback (if you want to deploy your app somewhere).

  3. Create a .env file in the root of the project with the following variables;

    • HOST
    • CLIENT_ID
    • CLIENT_SECRET

Example:

HOST=http://localhost:3000
CLIENT_ID=<your_client_id>
CLIENT_SECRET=<your_client_secret>

Dependencies

Install the dependencies running npm install.

Running

During development, run npm run dev.

When running on production, run npm run build && npm run start.

Run with Docker

To run this app in Docker use the following steps

  1. Build the image run: docker build -t c .

  2. Run the image:

docker run -p 3000:3000 \
    -e HOST=http://localhost:3000 \
    -e CLIENT_ID=<your_client_id> \
    -e CLIENT_SECRET=<your_client_secret> \
    c

About

A collaborative listening room using Spotify

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages