Skip to content

A nodejs application which accepts a username and a playlist name(users' favourite playlist) and stores it in a mongodb database. This is output on the webpage in a JSON format to find a list of all the users and their favourite playlists. The application is then dockerised to make it platform independent.

Notifications You must be signed in to change notification settings

aparna0522/My-Favourite-Playlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Favourite Playlist

Connected the node.js application with MongoDB at the backend to store and create database of the users and their favourite playlist.
A user can be created, by simply visiting the webpage http://localhost:8000/user-create
The list of names of users can also be seen in a JSON Format on the webpage http://localhost:8000/users
The name and playlist can be viewed, modified deleted using the mongodb atlas.
This application is dockerised using Docker and made platform independent.

How to run this project?

  1. Clone this repository.
  2. Open the MongoDB atlas(on browser).
  3. Create a cluster and get the connection URL for the same.
  4. Paste this URL in the connection.js under src folder.
  5. Open your terminal, open this directory and use the command docker-compose up
  6. Now, visit http://localhost:8000/users and http://localhost:8000/user-create

Project Inspired From: https://itnext.io/dockerize-a-node-js-app-with-vs-code-bd471710dc22

About

A nodejs application which accepts a username and a playlist name(users' favourite playlist) and stores it in a mongodb database. This is output on the webpage in a JSON format to find a list of all the users and their favourite playlists. The application is then dockerised to make it platform independent.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published