Skip to content

Add Express + MongoDB Notes API Docker Compose example - #802

Open
Kshashi22 wants to merge 1 commit into
docker:masterfrom
Kshashi22:master
Open

Add Express + MongoDB Notes API Docker Compose example#802
Kshashi22 wants to merge 1 commit into
docker:masterfrom
Kshashi22:master

Conversation

@Kshashi22

Copy link
Copy Markdown

Description

This pull request adds a new Docker Compose example demonstrating how to build and run an Express.js REST API backed by MongoDB.

Features

  • Express.js REST API
  • MongoDB database
  • Mongoose ODM
  • Docker Compose configuration
  • Dockerfile for the backend service
  • CRUD operations for notes
  • Example README with deployment instructions

API Endpoints

  • GET /
  • GET /notes
  • POST /notes
  • GET /notes/:id
  • PUT /notes/:id
  • DELETE /notes/:id

Testing

Run:

docker compose up -d

Signed-off-by: Kanishka Shashi <151860638+Kshashi22@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant