This is a simple notes app made in React for frontend and Django for backend
Clone the repo
git clone https://github.com/DivyanshuLohani/notes-appInstall the requirements
cd serverThen run
pip install -r requirements.txtThen start the server with
python manage.py runserverInstall the node requirements
npm iRun the server with
npm start- Create User account so your notes remain safe
- Notes are stored on the server
- Frontend in material UI
- Backend in Django
- With refresh and access tokens
POST /auth/login/Login to an existing user
| Parameter | Type | Description |
|---|---|---|
email |
string |
Required. Email for a user |
password |
string |
Required. Password for a user |
Register a new user
POST /auth/register/| Parameter | Type | Description |
|---|---|---|
name |
string |
Required. Name of new user |
email |
string |
Required. Email of new user |
username |
string |
Required. Username of new user |
password |
string |
Required. password of new user |
Logs the user out.
POST /auth/logout/Refresh The access token for the user
POST /auth/refresh/| Parameter | Type | Description |
|---|---|---|
accessToken |
string |
Required. Header; User accessToken |
GET /api/notes/notes| Parameter | Type | Description |
|---|---|---|
accessToken |
string |
Required. Header; User accessToken |
POST /api/notes/note| Parameter | Type | Description |
|---|---|---|
title |
string |
Required. title of the note |
content |
string |
Required. content of note |
accessToken |
string |
Required. Header; User accessToken |
category |
string |
(Optional) category of the note |
DELETE /api/notes/note/{note-id}/delete| Parameter | Type | Description |
|---|---|---|
accessToken |
string |
Required. Header; User accessToken |