Code Monkey home page Code Monkey logo

signed.login's Introduction

Spotify Web API Start Template

This is a template for a project using the Spotify Web API.

Features

The template includes:

  • Bootstrap. It uses Twitter Bootstrap to provide default styling.
  • Implementation for Spotify Web API OAuth 2.0 Implicit Grant flow. This is the simplest authentication flow, and works for webapps that want a user to log in and don't need to remember the authentication for a long time. Examples are webapps that want to access user's Your Music (saved tracks) or manipulate user's playlists. The login form is opened in a popup.
  • Wrapper for Spotify Web API in JavaScript. Though not strictly necessary, it makes it easier to use the Web API. You can have a look at the documentation to have an overview of the available functions, which cover all the Web API endpoints.
  • Knockout.js as the binding library. This is the de facto library used in lots of Spotify spotlets, and it removes the necessity of manipulating DOM, even in projects such as this basic template.

Usage

All the dependencies are included in the project, as well as basic credentials for using authentication with the Spotify Web API.

Just start a server listening on port 8000. If you have python installed, you can run:

python -m SimpleHTTPServer 8000

If you want to deploy the project on a site different from http://localhost:8000 you will need to register your own Application on the My Applications section of the Developer Site. Register the desired redirect uri and edit the file js/oauth-config.js replacing the clientId and redirectUri.

signed.login's People

Contributors

treypaschal avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.