{"id":18303853,"url":"https://github.com/fecony/weyer-nodejs-server","last_synced_at":"2025-04-09T10:20:20.417Z","repository":{"id":49880461,"uuid":"175291563","full_name":"fecony/weyer-nodejs-server","owner":"fecony","description":"🚧 Abandoned Service used to get token from Spotify API","archived":false,"fork":false,"pushed_at":"2021-06-09T05:56:59.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T04:27:38.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fecony.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-12T20:29:47.000Z","updated_at":"2021-06-09T05:57:08.000Z","dependencies_parsed_at":"2022-09-17T16:30:18.001Z","dependency_job_id":null,"html_url":"https://github.com/fecony/weyer-nodejs-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecony%2Fweyer-nodejs-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecony%2Fweyer-nodejs-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecony%2Fweyer-nodejs-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fecony%2Fweyer-nodejs-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fecony","download_url":"https://codeload.github.com/fecony/weyer-nodejs-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018120,"owners_count":21034053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T15:27:02.680Z","updated_at":"2025-04-09T10:20:20.394Z","avatar_url":"https://github.com/fecony.png","language":"JavaScript","readme":"# Weyer server to request token from Spotify API\n\n\u003e ###### MAYBE THAT IS NOT RIGH WAY TO WORK WITH API\n\nClient Credentials Flow - server-to-server authentication.\n\nThis service is used to:\n\n- Get Spotify Token\n- Refresh Token\n- Fetch tracks/albums by search query\n- Get track by ID.\n\n---\n\n## Development\n\nIn order to start developing, register a Spotify Application here:\nhttps://developer.spotify.com/my-applications\n\nWrite the below commands in your terminal (replacing XXXX AND YYYY with your acutal `client id` and `secret` from the page where you registered your application)\n\n```\nnpm install\nexport SPOTIFY_CLIENT_ID=XXXX\nexport SPOTIFY_CLIENT_SECRET=YYYY\nnpm start\n```\n\nThen you can use _`URL/tracks?query=[search_query]\u0026type=[track/album]`_ to fetch tracks/albums by search query.\nAnd _`URL/tracks/[tack_id]`_ to fetch data about track by ID.\n\n---\n\n## Production\n\nThis template is intended to be deployed on Heroku. After installing the Heroku CLI tools you can run the below commands in the same directory as server.js.\n\n\u003e Heroku will create a random name for application. You can rename it adding `name` after `heroku create` command\n\n```\nheroku create [name]\nheroku config:set SPOTIFY_CLIENT_ID=XXXX\nheroku config:set SPOTIFY_CLIENT_SECRET=YYYY\ngit push heroku master\n```\n\nCalling _http://`name`.herokuapp.com/tracks`?query=[search_text]\u0026type=[track_type/album_type]`_ to get 18 tracks found by search query.\n\nCalling _http://`name`.herokuapp.com/tracks/`[track_id]`_ will return track by it's ID\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffecony%2Fweyer-nodejs-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffecony%2Fweyer-nodejs-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffecony%2Fweyer-nodejs-server/lists"}