{"id":23885474,"url":"https://github.com/namelessproj/spotifriend-backend","last_synced_at":"2026-05-04T22:41:09.617Z","repository":{"id":270095667,"uuid":"909313886","full_name":"NamelessProj/SpotiFriend-backend","owner":"NamelessProj","description":"The backend of the SpotiFriend project.","archived":false,"fork":false,"pushed_at":"2025-01-12T15:06:37.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-07T15:54:10.719Z","etag":null,"topics":["express","expressjs","node-js","nodejs"],"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/NamelessProj.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-28T10:30:56.000Z","updated_at":"2025-01-12T15:06:40.000Z","dependencies_parsed_at":"2024-12-28T12:18:38.779Z","dependency_job_id":"7606f5d4-bcf6-4484-b5f3-259c580da0f7","html_url":"https://github.com/NamelessProj/SpotiFriend-backend","commit_stats":null,"previous_names":["namelessproj/spotifriend-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NamelessProj/SpotiFriend-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FSpotiFriend-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FSpotiFriend-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FSpotiFriend-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FSpotiFriend-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NamelessProj","download_url":"https://codeload.github.com/NamelessProj/SpotiFriend-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NamelessProj%2FSpotiFriend-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32628211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["express","expressjs","node-js","nodejs"],"created_at":"2025-01-04T04:49:51.057Z","updated_at":"2026-05-04T22:41:09.589Z","avatar_url":"https://github.com/NamelessProj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpotiFriend Backend\nThis is the backend for the SpotiFriend project.\n\n## Installation\n### Prerequisites\nBefore you can install the backend, you need to have the following installed on your machine:\n- [Node.js](https://nodejs.org/en/)\n- [npm](https://www.npmjs.com/)\n- [MongoDB](https://www.mongodb.com/)\n- [Spotify Developer Account](https://developer.spotify.com/)\n\n### Cloning the Repository\nTo install the backend, you need to clone the repository and install the dependencies. You can do this by running the following commands in your terminal:\n```bash\ngit clone https://github.com/NamelessProj/SpotiFriend-backend.git\ncd SpotiFriend-Backend\nnpm install\n```\n\n## Usage\nTo start the backend, you need to create a `.env` file in the root directory of the project. This file should contain the following variables:\n```env\nPORT=3000\nNODE_ENV=dev\nDATABASE_URI=your_database_uri\nJWT_SECRET=your_jwt_secret\nSPOTIFY_CLIENT_ID=your_spotify_client_id\nSPOTIFY_CLIENT_SECRET=your_spotify_client_secret\nMAILER_HOST=smtp.gmail.com\nMAILER_PORT=465\nMAILER_SECURE=true\nMAILER_PASS=your_mailer_password\nMAILER_USER=your_mailer_email\nMAILER_DEV_EMAIL=your_personal_email\nFRONTEND_URL=http://localhost:5173\n```\n\nThe `PORT` variable is the port on which the backend will run.\n\nThe `NODE_ENV` variable is the environment in which the backend will run.\n\nThe `DATABASE_URI` variable is the URI of your MongoDB database.\n\nThe `JWT_SECRET` variable is the secret used to sign the JWT tokens.\n\nThe `SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET` variables are the client ID and client secret of your Spotify application. You can create a Spotify application [here](https://developer.spotify.com/dashboard/applications).\n\nThe `MAILER_HOST`, `MAILER_PORT`, `MAILER_SECURE`, `MAILER_PASS`, `MAILER_USER`, and `MAILER_DEV_EMAIL` variables are the configuration for the mailer service used to send emails.\n\nThe `MAILER_DEV_EMAIL` variable is the email address to which the emails will be sent in development mode.\n\nThe `FRONTEND_URL` variable is the URL of the frontend application.\n\n\u003e[!TIP]\n\u003e ### Using Gmail\n\u003e If you're using Gmail, you'll need to allow less secure apps to access your account. You'll have to use the 2-step verification and create an app password. You can do that [here](https://myaccount.google.com/apppasswords).\n\u003e\n\u003e You can also use the OAuth2 method, but it's a bit more complicated.\n\nAfter you have created the `.env` file, you can start the backend by running the following command:\n```bash\nnpm start\n# or if you want to use nodemon for development\nnpm run dev\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamelessproj%2Fspotifriend-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnamelessproj%2Fspotifriend-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnamelessproj%2Fspotifriend-backend/lists"}