A simple notes application built with React (frontend) and Flask (backend) that allows users to create, view, and delete notes.
Before you begin, ensure you have the following installed:
- Python 3.x
- Node.js and npm
- Git (optional)
- Create and activate a Python virtual environment:
# Create virtual environment
python -m venv venv
# Activate virtual environment
# On Windows:
venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate- Install Python dependencies:
pip install -r requirements.txt- Install Node dependencies:
cd frontend-app
npm installIn one terminal window:
# Make sure your virtual environment is activated
python app.pyThe Flask backend will run on http://localhost:5001
In another terminal window:
cd frontend
npm run devThe React frontend will run on http://localhost:5173
The backend provides the following API endpoints:
GET /api/notes- Retrieve all notesPOST /api/notes- Create a new note- Required fields:
title,content
- Required fields:
DELETE /api/notes/<note_id>- Delete a specific note