Mandatory assignment - 2. semester - KEA
Start by cloning the repository in terminal:
git clone https://github.com/Forkeh/cyba-assignment-musicbase-backend.gitThen navigate to the directory on your computer:
cd cyba-assignment-musicbase-backendLastly, use the package manager npm to install necessary dependencies.
npm installGrab the database.sql file from the repository and use it to setup a local clone of our database.
Before being able to use the database, an .env file has to be created.
DB_HOST='127.0.0.1'
DB_USER='your_user'
DB_DATABASE='music_base_db'
DB_PASSWORD='your_password'To run the server, type the following in the terminal:
npm startIn your browser, navigate to localhost:3000 and you should recieve the following message, if the server is running correctly:
Server.js is running🎉