RiahiKarim / headfon.es

a mini Spotify clone 🎧

Home Page:https://headfon.es/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

headfon.es

client setup

server setup

TODO

  • Review Accessibility + Improvements
  • Mobile Friendly UI Improvements
  • React 16 Profiler Exam (performance)
  • Improve Search Results (currently listings are limited)
  • Artist Page ...

local database

address environment variable: MONGO_DB_URI_DEV

production database

  • mLab or another hosted mongo cloud solution

address environment variable: MONGO_DB_URI_PROD

environment variables

DEBUG=false

PROD_HOST=http://localhost
DEV_HOST=http://localhost
PROD_PORT=3000
DEV_PORT=3004
SESSION_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXX
SPOTIFY_CLIENT_ID=XXXXXXXXXXXXXXXXXXXXXXXXXXX
SPOTIFY_CLIENT_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SPOTIFY_REDIRECT=/auth/callback
JWT_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
MONGO_DB_URI_DEV="mongodb://localhost:27017/<database-name>"
MONGO_DB_URI_PROD="mongodb://<username>:<password>@<instance>.mlab.com:13402/<database-name>"
JWT_ISSUER=spotify-app-dev
JWT_AUDIENCE=spotify-app-user

running locally

To get the client and server code up and running:

yarn install-deps
yarn start-dev

You will also need to be running an instance of MongoDB

mongod

deployment

This can be deployed using a service such as now:

git clone https://github.com/mjw56/headfon.es
cd spotify
now -e SESSION_SECRET=XXXXXXXXXXX -e SPOTIFY_CLIENT_ID=XXXXXXXXXXX -e SPOTIFY_CLIENT_SECRET=XXXXXXXXXXX -e SPOTIFY_REDIRECT=/auth/callback -e JWT_SECRET=XXXXXXXXXXX -e MONGO_DB_URI_PROD=XXXXXXXXXXX -e JWT_ISSUER=XXXXXXXXXXX -e JWT_AUDIENCE=XXXXXXXXXXX

domain

aliasing to a domain is easy with now

now alias <now-url> <domain>

writing

issues

If you run into any issues, if something is not working or doesn't make sense, please don't hesitate to file an issue.

license

MIT

Happy Hacking!

About

a mini Spotify clone 🎧

https://headfon.es/

License:MIT License


Languages

Language:TypeScript 86.6%Language:CSS 10.7%Language:HTML 1.4%Language:JavaScript 1.3%