How to boot Spotify API on Rails?

Asked

Viewed 57 times

1

Project link on Spotify API Github

How to initialize this project in Rails? normal would be "Rails server", however some files are missing from the standard Rails project and are giving error...

Description:
The 'rails new' command creates a new Rails application with a default
directory structure and configuration at the path you specify.

You can specify extra command-line arguments to be used every time
'rails new' runs in the .railsrc configuration file in your home directory.

Note that the arguments specified in the .railsrc file don't affect the
defaults values shown above in this help message.

Example: Rails new ~/Code/Ruby/weblog

This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
  • 1

    This is a Gem. A Rails library for you to use in your own project. It’s not a project for you to boot

  • 1

    Thank you so much, now it all makes sense kkk.

  • Only one correction, as I wrote in the reply. This Gem is for ruby, but can be used with Rails

1 answer

0

This is a ruby gem, a ruby package that can be an application or library. In this case, it is a library that encapsulates the logic of calling `the Spotify API, so it is not necessary to develop its own.

Therefore, it should not be initialized with rails new.

To use it you must add it to your own project, it can be an Rails application or just a file . Rb.

From this use the methods available in the API documentation, which teach to search for music, album, and etc.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.