Giter Site home page Giter Site logo

cloudonix-programmingtest's Introduction

Cloudonix Programming Test

This is a sample project for the Cloudonix programming test. This is a Java-based project for the Cloudonix programming test. The project contains a simple HTTP server that exposes an API endpoint for analyzing text.

Description

The project is a Java-based web application that analyzes text input and returns the closest matching word from a pre-defined list of words. The application is built using the Vert.x framework.

Requirements

To build and run this project, you will need:

Java 8 or later Maven

Built and run

Build and Run To build and run the project, follow these steps:

  1. Clone the repository to your local machine: git clone https://github.com/Sakshamoo17/Cloudonix-ProgrammingTest.git
  2. Change into the project directory: cd Cloudonix-ProgrammingTest
  3. Build the project with Maven: mvn package
  4. Run the project: java -jar target/Cloudonix-ProgrammingTest-1.0-SNAPSHOT-fat.jar
  5. The server will start and listen on port 8080. You can access it at http://localhost:8080.

API Endpoint

The HTTP server exposes a single API endpoint at /analyze. You can send a POST request to this endpoint with a JSON payload that contains a text field. The server will analyze the text and return the closest matching word based on character value and lexical order.

Project Strutcure

The project is structured as follows:

  1. 'src/main/java': Contains the Java source code for the project ~'com.vertex.main': Contains the Main class which starts the HTTP server ~'VertextProject.Vertexproject': Contains the TextAnalyzerService class which defines the HTTP routes and implements the text analysis logic
  2. 'src/test/java': Contains the JUnit test cases for the project ~'VertextProject.Vertexproject': Contains the AppTest class which includes a single test case for the project

Contributors

License

This project is licensed under the MIT License.

cloudonix-programmingtest's People

Contributors

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