A game to guess lyrics using the MusixMatch API.
The product is deployed in two end points:
Front-end of the application: https://lyrics-breakdown-front.herokuapp.com/
Back-end API access point. https://lyrics-breakdown-server.herokuapp.com/
To start the front-end:
cd lyrics-breakdown
npm install --prefix client
npm start --prefix client
To start the back-end:
cd lyrics-breakdown
npm install --prefix server
npm start --prefix server
Database:
Service to query and perform operations on the database - DatabaseService.js
Added Environment.js in server/services containing the database URI - must change accordingly to the corresponding database running on localhost.
- Install https://docs.mongodb.com/manual/administration/install-community/
- Create directory 'data'
- Create db
mongod --port 27017 --dbpath=./data - Can interact with database via shell
mongo mongodb://localhost:27017/
Go to server folder, and run npm install mongodb.
Last step:
Locally, you don't have 2 contexts so everything has to be dealt in terms of local host. In order for the front end to talk to the back end, simply change the URL end point on your local machine (client/controllers/Environment.js). The local URL is commented there by default.