(only for educational purposes)
Translate words and phrases, view your own translate history, search by language.
Yandex Translate API is used. For full functionality, you have to get a free API developer key (https://translate.yandex.com/developers/keys). Use key as TRANSLATE_USER_KEY environment variable.
Docker compose .yml file includes two services:
- database (Postgres 9.5);
- translate (Spring Boot application);
The welcome page is localhost:8080
Web view based on html + freemarker templates + bootstrap (no specially written javascript code).
- spring boot web;
- spring jpa;
- spring security;
- spring cache;
- freemarker;
- postgresql;
- lombok;
Using:
$ git clone ... - clone git repo
$ cd spring-boot-translate-app
$ docker-compose up - start containers
$ curl localhost:8080 - check welcome page
Default user credentials: admin/admin123
http://localhost:8080/login - login page
http://localhost:8080/registration - register new user
http://localhost:8080/translation - translating page
http://localhost:8080/user - list of users for admin (editing user's roles)