Telegram Bot gives user all the main information about most popular european capitals. It reads the name of the city from the user's message and tells some general info about the city. Works with database where info is being kept. With api web-service you are able to add, edit and remove cities and info from the database.
Download zip archive with the files. Please make sure the release file is unpacked under a Web-accessible directory. You shall see the following files and directories:
.mvn maven wrapper
api api web-service
datasource database
tgbot telegram-bot app
.gitignore list-ignore source
mnvw maven wrapper doc
mvnw.cmd maven wrapper executable file
pom.xml config file
README.md this file
The minimum requirements - next should be installed on your PC:
- Google Chrome
- MySQL
- JDK 1.8+
To start up the telegram bot you need - On command line, you need to type in the following commands from the project root:
1. mvnw clean install
2. java -jar tgbot\target\tgbot-0.1-jar-with-dependencies.jar
To start up the API service you need:
-
If you have already started up the telegram bot below, all you need. On command line, you need to type in the following commands from the project root:
1. java -jar api\target\api-exec.jar
-
If you haven't started up the telegram bot, you need to do next. On command line, you need to type in the following commands from the project root:
1. mvnw clean install 2. java -jar api\target\api-exec.jar