Giter Site home page Giter Site logo

memomate's Introduction

Notes App

Overview

This is a simple notes application built using Node.js, Express, MongoDB, and Google OAuth for authentication. Users can sign in with their Google account, add, update, and delete their notes.

Features

  • Google OAuth authentication.
  • Create, update, and delete notes.
  • Store notes in MongoDB.
  • RESTful API for managing notes.

Installation

  1. Clone the repository:

    git clone https://github.com/Namit200323/notesApp.git
    
  2. Navigate into the project directory:

    cd notes
    
  3. Install dependencies:

    npm install
    
  4. Set up Google OAuth credentials:

    • Visit the Google Cloud Console.
    • Create a new project.
    • Enable the Google OAuth API.
    • Create OAuth credentials (OAuth 2.0 Client IDs).
    • Add authorized redirect URIs for your app (e.g., http://localhost:3000/auth/google/callback).
    • Copy the Client ID and Client Secret.
    • Create a .env file in the project root and add the following:
      GOOGLE_CLIENT_ID=your-client-id
      GOOGLE_CLIENT_SECRET=your-client-secret
      
  5. Start the server:

    npm start
    
  6. Access the application at http://localhost:PORT.

API Endpoints

  • GET /notes: Get all notes.
  • POST /notes: Create a new note.
  • GET /notes/:id: Get a single note by ID.
  • PUT /notes/:id: Update a note by ID.
  • DELETE /notes/:id: Delete a note by ID.

Screenshots

  • Home Page

  • User's Notes

  • Update Note

  • Delete Note

Dependencies

  • express
  • mongoose
  • passport
  • passport-google-oauth20
  • dotenv

Contributing

Contributions are welcome! Feel free to submit pull requests.

License

This project is licensed under the MIT License.

memomate's People

Contributors

karantiet avatar

Watchers

 avatar

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.