/notes-app

Nader's Express.js + Flutter project

Primary LanguageDart

Notes App

Languages and Tools

Frontend (Flutter)

1- Clone the repository.
2- Navigate to the frontend directory.
3- Run 'flutter pub get' to install dependencies.
4- Use Flutter CLI commands to run the app on your preferred device/emulator.

Backend (Node.js + MongoDB)

1- Clone the repository.
2- Navigate to the backend directory.
3- Run npm install to install dependencies.
4- Set up MongoDB and configure the connection string in a .env file.
5- Run npm start to start the Node.js server.

Features

1- Add Note

Endpoint

  • /api/notes/

Method

  • POST

Description

Adds a new note with a name, content, and color representation.

Request Payload

{
  "name": "Note Name",
  "content": "Note Content",
  "color": "green" 
}

2- Delete Note

Endpoint

  • /api/notes/:noteId

Method

  • DELETE

Description

Deletes the specified note by its unique identifier.

Request Parameters

  • noteId: The unique identifier of the note to be deleted.

3- Update Note

Endpoint

  • /api/notes/:noteId

Method

  • PATCH

Description

Updates an existing note with new content, name, or color.

Request Parameters

  • noteId: The unique identifier of the note to be updated.

Request Payload

{
  "name": "Updated Note Name",
  "content": "Updated Note Content",
  "color": "red"
}