-
Notifications
You must be signed in to change notification settings - Fork 0
Julien29121998/LangAnalyzer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
<h1>LangAnalyzer</h1> <i>by BENARD Julien</i> <p>Tool to detect in which language a text is written. Also a proof of concept to demonstrate a use case of RabbitMQ.</p> <strong>SETUP</strong> <p>If on Linux, use:</p> <code>make docker</code> <p>Or just go in the client and server folder and run:</p> <code>make dockerclient</code> <p>and</p> <code>make dockerserv</code> <p>respectively</p> <p>Or just build the docker containers by hand, with the help of the content of the makefiles:</p> <code> cd servers</br> docker build -t srv . > build.log</br> docker run -d -p 8470:80 --name srv -v <b>[YOUR CURRENT DIRECTORY]</b>:/var/www/html php:7.2-apache && docker rename srv srv1</br> docker run -d -p 8971:80 --name srv -v <b>[YOUR CURRENT DIRECTORY]</b>:/var/www/html php:7.2-apache && docker rename srv srv2</br> docker run -d -p 8972:80 --name srv -v <b>[YOUR CURRENT DIRECTORY]</b>:/var/www/html php:7.2-apache && docker rename srv srv3</br> docker run -d -p 8974:80 --name srv -v <b>[YOUR CURRENT DIRECTORY]</b>:/var/www/html php:7.2-apache && docker rename srv srv4</br> cd client</br> docker build -t jbenard/tpcalc . > build.log && docker run -dit -v <b>[YOUR CURRENT DIRECTORY]</b>:/project -p 15672:15672 --name calc_client jbenard/tpcalc</br> </code> </br> <strong>USE</strong> <p>Simple use: paste some long text in input.txt and run:</p> <code>make run_on_input</code> <p>or just</p> <code>make example</code> <p>to run on the default example</p> <p>Manual use: fill "sample.txt" with your text and:</p> <code> docker exec -it calc_client ruby controller.rb "sample.txt" 8470 8971 8972 8974 </code>
About
Tool to detect in which language a text is written. Also a proof of concept to demonstrate a use case of RabbitMQ.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published