Skip to content

k-neel/spotipie-webserver

Repository files navigation

Spotipie-authserver

Node.js API Server for requesting authentication token from Spotify for Spotipie-bot.

Can be found on telegram as Spotipiebot.

Getting started

  • Install dependencies
cd <project_name>
npm install

This will install all necessary dependencies.

  • Getting TypeScript
npm install -D typescript
  • Start your mongoDB server (you'll probably want another command prompt)
mongod

Configuration

The following env variables are supported:

  • ENVIRONMENT: default: 'production'. Anything else is treated as 'dev'
  • MONGODB_URI: Your database URI.
  • MONGODB_URI_LOCAL: Your database Local URI (eg. 'mongodb://localhost:27017/db-name').
  • BOT_URL: Your bot's URL.