danielschleindlsperger / syncify-legacy

Listening Rooms for Spotify.
https://syncify.co
0 stars 0 forks source link

Syncify

Build Artifacts Status

Syncify is a synchronized listening room experience for Spotify. Think community radio. syncify.co

Table of Contents

Prerequisites

Environment

A list of all environment variables across all applications with a little explanation can be found here

For a development environment copy the provided .env.example file once for your local instance and once for tests (might be the same file).

mv .env.example .env
mv .env.example .env.test

Afterwards fill in the unprovided credentials.

Up and running

NPM Commands

npm install

# start all apps locally
npm start

# run tests for all apps
npm t

Now you can access the whole app on localhost:8080

Routes

Route Description Handler
/api/auth/trade-token Trade Spotify code for access tokens handler
/api/auth/refresh Call when authorized to get refreshed tokens handler
/api/room/{id} Get data for room with id handler

Infrastructure as Code

sls create_domain # custom api gateway domain

sls deploy # lambdas, cloudfront, databases