The project was built while working on simple test task. It's API that allows to show artists from spotify and update a specified artist as a favorite.
I was caught up in doing the test task so that decided to add basic filers: by_name, by_genres, by_favorites
- Return the artists and re-format the results, provide a default artist value for the root url.
- Fetch an artist and save as a favourite
- Create a Rails 5 project, store code on Github or BitBucket. The application needs to be deployed on Heroku.
- Format the result set with just the spotify id, external_urls, genres, href and name.
- Create an action to a mark an artist as a favourite, store the formatted result set.
- API only, no views. Responses should return JSON.
- PostgreSQL
- Ruby 2.6.6
- Rails 5
# clone
git clone [email protected]:IlkhamGaysin/artists-spotify.git
cd artists-spotify
# run setup script
bin/setup
# configure ENV variables in .env
vim .env
# run server on 5000 port
bin/server
bin/setup
- setup required gems and migrate db if neededbin/quality
- run brakeman and rails_best_practices for the appbin/ci
- should be used in the CI to run specs