This guide will walk you through setting up DVinyl on your local machine or server using Node.js and MongoDB.
Before you begin, ensure you have the following installed:
- Node.js (v18.x or higher)
- npm or yarn
- MongoDB (v6.x or higher)
git clone https://github.com/Kyonew/DVinyl.git
cd dvinylnpm installCopy the template and fill in your details (see API Configuration for keys):
cp .env.example .envImportant
Make sure to use PROD=true ONLY WITH HTTPS. For localhost or local IP access, leave PROD to false.
For the environment variables PASSJWT and SESSION_SECRET, make sure to use different complex passwords. They are essential for properly encrypting sessions.
npm start app.jsYou can also run the app with pm2:
pm2 start app.js --name dvinylDVinyl should now be running at http://localhost:3099.