GithubHelp home page GithubHelp logo

kavi14 / phraseandcharacters Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paramspsp/phraseandcharacters

0.0 1.0 0.0 2.45 MB

Java 1.98% TSQL 0.03% HTML 0.73% CSS 52.61% JavaScript 44.66%

phraseandcharacters's Introduction

Character And Phrase Search Service

Provides simple REST APIs for searching Character and Phrases by using MDB Jquery user interface

Dependencies:

Setup:

  1. Import the project or clone the project into an IDE either by clone or download option

  2. Application will be running on the 8083 and make sure no other services are using this port. Kill the process Refer to application.properties

  3. Identifying the port usage and killing the process (Mac os)

    sudo lsof -i tcp:8083 kill -9 <>

  4. Application will automatically load the data from JSON files called as characters.json and phrases.json into CHARACTER_TB and PHRASE_TB table in H2 database when the server is starting. Both these files are preent under /resources/data/ folder.

REST APIs for Character and Phrase Services

  1. http://localhost:8083/api/v1/phrases/allPhrases (GET)

    Above API will return all the phrases from the database table called PHRASE_TB

  2. http://localhost:8083/api/v1/phrases/specificPhrases/<> (GET)

    Above API will be returning the list of specific phrase word contains in the PHRASE_DB table.

  3. http://localhost:8083/api/v1/phrases/addPhrase (POST)

    Above API will be creating the new phrase record into the phrase table.

  4. http://localhost:8083/api/v1/characters/allCharacters (GET)

    Above API will return all the characters from the database called as CHARACTER_TB

  5. http://localhost:8083/api/v1/characters/specificCharactersByFirstName<> (GET)

    Above API will be returning the list of specific characters where it matches the first name in the CHARACTER_DB table.

  6. http://localhost:8083/api/v1/characters/specificCharactersByLastName<> (GET)

    Above API will be returning the list of specific characters where it matches the last name in the CHARACTER_DB table.

  7. http://localhost:8083/api/v1/characters/addCharacter (POST)

    Above API will be creating the new character record into the CHARACER_TB table.

Using Services

The services may be accessed via HTTP requests. They return data in JSON format.

User Interface to search character and phrases

Application can be accessed from the below home page URL. Home page will be displayng the two options to navigate to phrase or character search. Both these pages will display the MDB JQuery data table accordingly. Data tables will be having the pagination, search option and navigating back to home page.

http://localhost:8083/home.html

phraseandcharacters's People

Contributors

paramspsp 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.