Skip to content

BethMwangi/language-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Langauge API

A web service that returns the langauge code of a sentence passed to it

Table of Contents

  1. Getting Started

Getting Started Docker

To get started you need to have docker installed on Windows or Mac please follow this link for Ubuntu use this link. Once downloaded clone the repository and cd into the repository and

cd language-api

run the following command

docker-compose up --build

The command will download all the required containers and start the application to access the application go to the browser on the url http://localhost:5000

To Test the application run the below requests in another terminal;

curl -i  -X POST -H "Content-Type: application/json" -d '{"input": "My cat ate a mouse"}' http://localhost:5000/

curl -i  -X POST -H "Content-Type: application/json" -d '{"input": "Startrek is a ship"}' http://localhost:5000/

##Testcases

https://jmp.sh/MdL7x5i

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published