A full-stack note-taking application with a desktop client built using Electron and a Node.js backend.
NotesApp/
├── backend/ # Express.js server
└── frontend/
└── desktop-app/ # Electron desktop client
- Node.js
- Express.js
- PostgreSQL
- JSON Web Tokens (JWT)
- bcrypt
- CORS
- Navigate to the backend directory:
cd backend- Install dependencies:
npm install- Create a .env file with the following variables:
DATABASE_URL=postgresql://username:password@localhost:5432/notesapp
JWT_SECRET=your_jwt_secret_key
PORT=3000- Start the server:
npm startFor development with auto-reload:
npm run dev- POST /auth/register - Create new user account
- POST /auth/login - Login user
- GET /notes - Get all notes for authenticated user
- GET /notes/:id - Get specific note
- POST /notes - Create new note
- PUT /notes/:id - Update existing note
- DELETE /notes/:id - Delete note
- Electron
- Quill.js (Rich text editor)
- Axios
- HTML/CSS/JavaScript
- Rich text editing
- Floating note windows
- Auto-save functionality
- System tray integration
- User authentication
- Real-time content synchronization
- Navigate to the desktop app directory:
cd frontend/desktop-app- Install dependencies:
npm install- Start the application:
npm startTo create distributable packages:
npm run buildThis will create platform-specific packages in the dist directory.
For development with hot reload:
npm run dev- Node.js 14+
- PostgreSQL 12+
- Windows, macOS, or Linux
ISC License
Copyright (c) 2024 Chaitu1712
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
This README provides a comprehensive overview of your project structure, setup instructions, and key features for both backend and frontend components.