First of all, thanks for using this Source Code, it was and is a ton of work to create and maintain it! That's why I'm asking everyone to donate a little bit of money (via Paypal through ko-fi) or if that's not possible, then join my Discord Server!
NOTE: If you are gonna deploy on Cloudflare workers/pages please use this repo
Click to expand
- nodejs version 20 or higher, I recommend the latest STABLE version
- A VPS would be advised, so you don't need to keep your PC/Laptop/RasPi 24/7 online!
- At least 2GB of RAM & 0.5 - 0.75vCPU with 2GB storage.
Click to expand
- Download the Source Code
- Either by:
git clone https://github.com/vuthanhtrung2010/spotify-status - Or by downloading it as a zip from a branch
- Either by:
Click to expand
NOTE: You can do the exact same configuration inside of the .env.example file, just make sure to rename it to .env or use environment variables!
- Ensure that you have installed all node modules by running
pnpm i - Ensure that you have renamed
.env.exampleto.envand added environment variables - Now run
pnpm run buildthen runpnpm startorpnpm startorpm2 start pnpm --name Status -- startif you using a VPS to run the website as production mode. You can also run the website as developer mode bypnpm run devorpm2 start "pnpm run dev" --name Status. Might addnpxto the prefix ofpm2if you are not using the runtime version! - Now go to the
/loginroute and login to your Spotify Account! - Enjoy!
Click to expand
NOTE: You can do the exact same configuration inside of the .env.example file, just make sure to rename it to .env or use environment variables!
./.envclient_secretyou can get from: Spotify Developer Dashboardclient_idyou can get from: Spotify Developer Dashboardredirect_uriwhatever you set for your domain/website, route/callback. Eg:https://spotify.trunghsgs.edu.vn/callbackDATABASE_URLget from your self hosted database. PostgreSQL. See the list of supported versions by Prisma hereemailis email that you use to register to Spotify platform.PORTis your port number the website listening to. Default listening port will be 3000.BASE_URLyour base URL. Eg:https://spotify.trunghsgs.edu.vn
If you want to help improve the code, fix spelling or design Errors or if possible even code errors, you may create PULL REQUESTS. Please create pull request compare to beta branch, else you will get instant close! Please consider, that Vũ Thành Trung is the main Developer of this project!
