Mindful Journal is a full-stack web application that allows users to register, log in, and manage their notes. Built with Django on the backend and React on the frontend, the application features JWT-based authentication and PostgreSQL for data storage. The app provides a clean and functional user interface for creating, viewing, and deleting notes.
- User Authentication: Sign up, log in, and log out securely using JWT tokens.
- Note Management: Create, view, and delete notes with a simple interface.
- Protected Routes: Only authenticated users can access specific routes and manage their notes.
- RESTful API: The backend is built with Django REST Framework, offering secure API endpoints.
- PostgreSQL Database: Data persistence is handled with PostgreSQL, ensuring secure and efficient data storage.
- Django
- Django REST Framework
- PostgreSQL
- JWT for authentication
- React
- Axios for API requests
- React Router for navigation
-
Clone the repository:
git clone https://github.com/SultanMalik1/Mindful-Journal.git cd Mindful-Journal/backend
-
Install dependencies and set up the virtual environment:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Set up environment variables for PostgreSQL and JWT settings.
-
Run migrations and start the server:
python manage.py migrate python manage.py runserver
- Navigate to the frontend directory:
cd ../frontend
- Install the required dependencies:
npm install
- Start the React development server:
npm start
- User Registration: /api/user/register/
- Login: /api/token/
- Notes:
- Create and List Notes: /api/notes/
- Delete Note: /api/notes/delete/int:pk/