Skip to content

Highlighted-dev/musidle-guess-todays-song

Repository files navigation

This project has been merged with open-book-chronicle. It won't be updated anymore (10.31.2024)

MusidleGuessTodaysSong

This is a music guessing game where players have to guess the song of the day.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them:

  • Node.js
  • npm

Installing

A step by step series of examples that tell you how to get a development environment running:

  1. Clone the repository: git clone https://github.com/Highlighted-dev/musidle-guess-todays-song
  2. Navigate into the project directory: cd musidle-guess-todays-song
  3. Install the dependencies: npm install
  4. Make a dev and prod databases (I named them musidle for development and musidle-prod for production) in mongoDB.
  5. Add the an .env file in /apps/musidle-frontend with these variables (if they are empty you should fill them up):
NEXT_PUBLIC_API_HOST =
NEXTAUTH_URL= "http://localhost:4200"
NEXTAUTH_URL_PROD=
NEXTAUTH_SECRET =
MONGODB_URL =
MONGODB_URL_PROD =
JWT_SECRET =
NEXT_PUBLIC_VERSION=0.11.0

and an .env file in /apps/musidle-api with these variables (if they are empty you should fill them up):

LASTFM_API_KEY =
MONGODB_URL =
MONGODB_URL_PROD =
JWT_SECRET =
PORT = "5000"
API_URL =
MAILGUN_API_KEY =
SERVER_KEY =
SERVER_CERT =
SERVER_CA =
INTERMIDIATE_CA=
  1. Create an 'assets' folder in /apps/musidle-api/src/ and put any songs that you would want there. The songs that were used in project were named like that: pop1.mp3, rock8.mp3 etc. for phase one, artist1.mp3 etc. for phase 2, final1.mp3 etc. for phase 3.

  2. Start the development server: nx serve musidle-frontend and nx serve musidle-api

Now, open your browser and navigate to http://localhost:4200/. Happy coding!

Running the tests

To run tests use nx run musidle-api:test

Built With

Authors

License

This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License - see the LICENSE.md file for details

About

Imporant! The link below leads to the demo of this app. Some features may not work.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages