[go: up one dir, main page]

Skip to content

✈️ REST Api built with express.js for Google-Keep-Clone-React app

Notifications You must be signed in to change notification settings

fazle-rabbi-dev/Google-Keep-Clone-Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keep Icon

Google-Keep-Clone-Api

This project serves as the backend API for my Google Keep Clone built with React. It provides the necessary endpoints to manage notes, enabling seamless integration with the corresponding frontend application.

Created at

  • Dec 2023

Live

  • Not yet deployed! However, feel free to experiment on your local machine.

🚀 Getting started:

  • Clone this repo
  • Setup .env
    MONGODB_URI=<your mongodb uri>
    SECRET_KEY=<secret key for hash password>
    
  • Run app by executing -> npm start

📃 Docs

  • Base Url: http://localhost:5000

Authentication

  • /auth/register
    • <method>POST: Create a new account
    • request body:
    {
      username: "",
      email: "",
      password: ""
    }
  • /auth/login
    • <method>POST: Login to your account
    • request body:
    {
      email: "",
      password: ""
    }

CRUD With Notes

  • /notes

    • <method>POST: Create a new note
    • request body:
    {
      title: "Demo", // Note Title
      body: "Hello this is a note...", // Actual Note
      // Optional
      preferences: {
        bgcolor: "bg-red-800", // Tailwindcss class
        pin: true, // Is note pinned?
      }
    }
  • /notes

    • <method>GET: Get all notes
    • required to send session-token as authorization header with Bearer prefix. e.g: { "authorization": "Bearer token" }
  • /notes/id

    • id is your note_id
    • <method>PATCH: Update a specific note
    • required to send session-token as authorization header with Bearer prefix. e.g: { "authorization": "Bearer token" }
  • /notes/id

    • id is your note_id
    • <method>DELETE: Delete a specific note
    • required to send session-token as authorization header with Bearer prefix. e.g: { "authorization": "Bearer token" }

About

✈️ REST Api built with express.js for Google-Keep-Clone-React app

Resources

Stars

Watchers

Forks