Welcome to my repository! Here you can find my feauture, created for a matching application named music matching. The concept is that the user can add a list of his favorite songs to the profile of this matching application. The user is linked to a music genre, based on this list of songs. Because of this, the user can match with people who have the same taste in music. Ofcourse it's possible that the user's taste in music changes over time. Therefore, the user can change and update the list.
For this project, we're going to use NodeJS, NPM and MongoDB. Please follow the instructions below.
- Clone this repository to your machine.
$ git clone https://github.com/AronPelgrim/matching-application.git
- Locate to the right directory.
$ cd matching-application
- Install the necessary packages.
$ npm install
MongoDB provides a clear tutorial on how to connect your MongoDB to a Node js application.
Okay, let's now fill in your data in the .env file.
DB_CONNECTION=mongodb+srv:/Username:Password@ClusterName.h6oao.mongodb.net/CollectionName?retryWrites=true&w=majority
In the structure below, you can find the database visualisation.
Cluster: Cluster0
Database: MusicMatch
Collection: nummers
Name |
Type |
---|---|
_id | ObjectID |
title | String |
artist | String |
genre | String |
With this command you can start the server.
$ npm start
Let's check it out! the server runs on localhost:3000.
You can reach me on this email.