Git Product home page Git Product logo

notekeeperserverrepo's Introduction

NoteKeeperServerRepo

Purpose:

The NoteKeeperServer is used for storing notes created on the Android app in a JSON array. The server contains a main servlet that responds to HTTP GET requests stating that the server is connected. A servlet used for updating the server with the notes created on the android app using an HTTP POST request and sending the notes stored on the server with a HTTP Get request. The final servlet is used to retrieve the notes stored on the server using a HTTP Post request or HTTP Get request.

File Descriptions:

MainServlet: The main servlet which only responds to HTTP Get requests with "Server is connected!" in plain text. If a resource that doesn't exist is requested, then the server responds with the main servlet's response. GetNotesServlet: Retrieves the notes currently stored on the server. The format is JSON and each of the notes is stored with a note ID in an array list of hash maps. The servlet will respond to HTTP GET and POST requests under the /getnotes resource. UpdateServlet: Updates the server with the changes made locally on the app. The resource is /updateserver and simply creates a JSON array to store each of the notes. Each note is identified by it's note ID which is an integer value. Program Flow:

Initially, the client makes a request to the /getnotes resource in order to get the notes currently stored on the server. The client can only use an HTTP Get or Post request for this resource. Next, updates can be made to the server using the refresh button on the app. The resource /updateserver is sent an HTTP Post request containing the list of notes on the client. The server replaces the data stored on the server with the client's list of notes.

Next Version:

Handle images sent to the server by the client for face-lock login. Add an extra field to the JSON array for each note to allow for note reminder's by location.

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.