Skip to content

Surender0905/crud-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Application - Microservice System with NextJS Frontend

Problem Statement

This project involves designing a microservice system for a simple CRUD application with user management functionality. The application allows users to:

  • View a list of users
  • View detailed information of a selected user
  • Add and edit user data

Installation

Step 1: Clone the Repository

Start by cloning the repository from GitHub. Use the following command to clone the repository to your local machine:

git clone <repository_url>
cd <project_directory>
  1. Frontend Service (NextJS):

    • cd frontend

    • Install dependencies: npm install

    • To start the frontend service, run npm run dev

    • To build the NextJS application, run npm run build

    • port http://localhost:3000

    • Create a NextJS application to:

      • Display a list of users
      • Show a detailed view of a selected user
      • Provide forms for adding and editing user details
  2. User Entity: The user data consists of the following fields:

    {
        "user": "Harry",
        "interest": ["Comics", "Sports"],
        "age": 22,
        "mobile": 4234243224,
        "email": "harry@potter.com"
    }
  3. Backend Service (NodeJS):

    • cd backend
    • Install dependencies: npm install
    • To start the backend service, run npm start in the backend directory
    • port http://localhost:5000
  4. Database (MongoDB):

    • Create a MongoDB database to store user data
    • Configure the backend service to connect to the MongoDB database

Run with docker-compose.yml

# directly run docker-compose in terminal
docker-compose up -d --build

About

A Dockerized MERN stack app with a Next.js frontend, Node.js/Express backend, and MongoDB, using Docker Compose for container orchestration. It includes networking for communication between containers and volumes for persistent data storage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors