Giter Site home page Giter Site logo

google-keep-clone-api's Introduction

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" }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.