Svelte-Notes-App Svelte Themes

Svelte Notes App

Svelte Notes App

A simple, responsive notes application built with Svelte and TailwindCSS. The app connects to a mock API to let users create, view, edit, and delete notes.

šŸš€ Features

  • View all notes
  • Create a new note (title + content)
  • Edit existing notes
  • Delete notes
  • Responsive design (mobile + desktop)
  • Clean TailwindCSS UI

šŸ›  Tech Stack

  • Svelte
  • TailwindCSS
  • Fetch API
  • MockAPI.io

🌐 API

The app uses MockAPI.io.

Base URL:
https://68511b218612b47a2c08a075.mockapi.io/api/notes

Note Schema:

{
  "id": "string",
  "title": "string",
  "content": "string",
  "createdAt": "ISODate"
}

šŸ“‚ Project Structure

<root>/
ā”œā”€ā”€ README.md              # Project readme (this file)
└── svelte-notes-app/
    ā”œā”€ā”€ .vscode/           # (optional) editor settings
    ā”œā”€ā”€ node_modules/      # dependencies
    ā”œā”€ā”€ public/            # static assets
    ā”œā”€ā”€ src/
    │   ā”œā”€ā”€ assets/        # app assets
    │   ā”œā”€ā”€ components/    # NoteForm, NoteList, NoteCard
    │   └── lib/           # (optional) helper modules
    ā”œā”€ā”€ package.json       # npm project config
    ā”œā”€ā”€ tailwind.config.js # Tailwind setup
    └── ...

⚔ Getting Started

1ļøāƒ£ Clone the repo

git clone https://github.com/SahilAdvani/Svelte-Notes-App.git

2ļøāƒ£ Install dependencies

npm install

3ļøāƒ£ Run the app

npm run dev

Open: http://localhost:5173

āš–ļø Trade-offs / Assumptions

  • API URL is hardcoded (safe for mock API).
  • Minimal error handling; could be improved.
  • No dark mode or delete confirmation yet.

✨ Future Enhancements

  • Dark mode
  • Delete confirmation modal
  • Search & filter functionality
  • Pagination or infinite scroll
  • Better error handling + loading spinners

šŸ“§ Submission

āœ… Code repo: https://github.com/SahilAdvani/Svelte-Notes-App.git
āœ… Functional app
āœ… API working as expected

Top categories

Loading Svelte Themes