GithubHelp home page GithubHelp logo

ls-speech-api's Introduction

ls-speech-api

Introduction

This is an example application coded to meet the requirements for one of LS company's technical challenges.

Prerequisites

This application requires at least Java 17 to build and run. Before doing anything else, ensure you have the recommended version of Java JDK installed. It requires that version of Java since the application is built using Spring Boot 3.1.x, which at the minimum requires Java 17 to build and run. For more information, please refer to here.

Building The Application

This application has been tested on Linux and Windows. To build the application after having cloned the repository from GitHub, execute the following command in the base project folder:

Linux:

./mvnw clean package -e -DskipITs

Windows:

.\mvnw.cmd clean package -e -DskipITs

This will download all necessary dependencies to build the application, run tests against it, and then finally produce a zip file inside the target folder. The file is usually named ls-speech-api-<version>-zip-dist.zip e.g. ls-speech-api-0.0.1-SNAPSHOT-zip-dist.zip.

Running the Application

Extract the contents of that zip-dist file. Inside, there should be a couple of script files (.bat and .sh) as well as a ls-speech-api.jar file. Use the appropriate script file to execute the application depending on your environment.

Linux:

./runH2Local.sh

Windows:

.\runH2Local.bat

This will run the application on your local workstation and it will create a file-based H2 database for storing the data. You can use this for testing the application. The default server port used is 9091 and can be changed by editing the script files.

Assuming nothing is changed in the script files, the app can be checked if it is running by copy-pasting the given URL to a browser: http://localhost:9091/speeches/o/notexist

Assuming no errors, it should produce an output saying that the speech with the given ID could not be found.

ls-speech-api's People

Contributors

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