Code Monkey home page Code Monkey logo

note_making_app's Introduction

Note Making App

Technologies Used

  • ExpressJS : a framework for building backend applications
  • MongoDB: NoSQL database for storing user data.
  • Jest : used for testing

Getting Started

Prerequisites

  • Node.js, npm, mongo installed on your machine.

Installation

  1. Clone the repository:

    git clone https://github.com/Ujjwal-Gupta-web/note_making_app.git
  2. Installing dependencies

     npm i
  3. Running the app

     node index.js
  4. Running tests

     npm test
  5. Access the application at http://localhost:8000.

Project Structure

root/
|-- __test__/         
|-- controllers/                    
|-- middlewares/                    
|-- models/                    
|-- routes/                    
|-- utility/                    
|-- .env                    
|-- .gitignore                    
|-- index.js                   
|-- jest.config.js                   
|-- package.json                    
|-- package.lock.json                    
|-- readme.md                    

APIs

AUTH APIS

|-- /api/auth/login                                 # POST API, {email,password} sent in body
|-- /api/auth/signup                                # POST API, {email,password} sent in body
|-- /api/auth/getRandomUser                         # GET API, gets a random user, used in testing

NOTES APIS (All apis are protected)

|-- /api/notes/                            # GET API, getAllNotes
|-- /api/notes/                            # POST API, create note send {title,desc} in body
|-- /api/notes/:id                         # GET API, getNoteById
|-- /api/notes/:id                         # PUT API, updateNoteById
|-- /api/notes/:id                         # DELETE API, deleteNoteById
|-- /api/notes/:id/share                   # POST API, shareNote, send {email} in body, email of receiver

SEARCH APIS (All apis are protected)

  • indexing is used here
|-- /api/search?q={query}                          # GET API,

Project Features

  • create, read , update , delete of notes can only be done be authenticated user
  • login, signup of user
  • one authenticated user can share notes with other authentic user
  • when fetching all notes user gets all notes created by him and all notes shared with him
  • rate limiting of requests is acheived (if more than 100 requests, server will not respond for time)
  • logging for all apis is acheived for naviating errors
  • Indexing is used to enable effient search

Postman Link (Access Apis here)

Run In Postman

note_making_app's People

Contributors

ujjwal-gupta-web 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.