ChatBot is a keyword-recognition-based Bot. The backend is written in Java, using Spring Boot to deploy a webservice. The frontend is written in Quasar, a VueJS framework, using TypeScript instead of plain JS to ensure typesafety.
This is a small project for vocational school.
To build the project and receive an executable exe/jar, execute
./gradlew about installQuasar cleanFrontend assembleFrontend copyDist build createExe --info
from the main directory of this repository. After the execution finishes, you'll have your ChatBot.exe
and ChatBot-x.x.x-SNAPSHOT.jar
available in the build/libs
-directory.
Deploying ChatBot from the JAR-file can be done by downloading the latest release from the releases page
and executing it in any directory with java -jar ChatBot-x.x.x.jar
where x.x.x
represents the version you downloaded. Afterwards, head to http://localhost:8080
in
your favorite webbrowser and you're good to go!
Create a docker-compose.yml
-file in your preferred location and add the following to it after editing it to your liking:
version: '3'
services:
chatbot:
image: ghcr.io/suk-it/chatbot:latest
container_name: chatbot
restart: unless-stopped
environment:
- TZ=Europe/Berlin # Your Timezone
- PUID=1000 # Your user ID
- PGID=1000 # your group ID
volumes:
- /path/to/dir/on/host:/config # Where you want to store config-data from the container on the host. Optional.
Run the following command, after editing it to your liking:
docker create \
--name=chatbot \
-e TZ=Europe/Berlin `# Your Timezone` \
-e PUID=1000 `# Your user ID` \
-e PGID=1000 `# Your group ID` \
-v /path/to/dir/on/host:/config `# Where you want to store config-data from the container on the host. Optional.` \
--restart unless-stopped \
ghcr.io/suk-it/chatbot:latest
For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Boot DevTools
- Spring Web
- Validation
The following guides illustrate how to use some features concretely:
- Building a RESTful Web Service
- Serving Web Content with Spring MVC
- Building REST services with Spring
These additional references should also help you:
First, make sure you have Node >= 8 and NPM >= 5.
# install Quasar CLI:
$ npm install -g @quasar/cli
# generate a project folder
$ quasar create <folder_name>
$ cd my-project
$ npm install
# start developing your app
$ quasar dev
# Check CLI commands available:
$ quasar
npm install
quasar dev
npm run lint
quasar build