DEV Community

Cover image for Docker-based User-Profile handler JS Application
Mihir
Mihir

Posted on

Docker-based User-Profile handler JS Application

Hello Amazing people 👋 Here's a JavaScript application I built based on Docker containerized services for user-profile management purposes.

GitHub

Code

Tools

  • Docker
  • HTML, CSS
  • MongoDB, Mongo-Express data storage
  • Nodejs backend

Building the application

  • Pull the images for mongodb and mongo-express

Image description

Image description

  • Create docker network

  • Start mongodb inside docker container

Image description

  • Start mongo-express inside docker container

Image description

  • Open mongo-express from browser
    http://localhost:8081
Enter fullscreen mode Exit fullscreen mode
  • Create my-db database in mongo-express dashboard.

Image description

  • Create users collection inside the database

Image description

  • Start your nodejs application locally - go to app directory of project

Image description

Image description

  • Access you nodejs application UI from browser
    http://localhost:3000
Enter fullscreen mode Exit fullscreen mode
  • Add a user profile in application UI

Image description

  • Go to mongo-express dashboard and ensure addition of credentials

Image description

Completion

That's it, the Docker-based User-Profile handler JS Application is up and running!🥳

Feel free to add as many entries as you want, which can all be managed with the mongo-express dashboard.

Top comments (0)