This project is a backend written with Kotlin multiplatform using the Ktor tool. Ktor allows us to write and configure a backend server that can manage all HTTP responses and return information in JSON to be used as an API in our applications.
For the deployment of the server, docker has been used to create a server image and a container where the server is serving the Api in Fly.io
To get started, you will need to have the following installed on your machine:
- Kotlin
- Gradle
Clone the repository and navigate to the project directory. Run the command gradle run
to start the server.
The following endpoints are available in the API:
GET /words
: Retrieves a list of all words in the databasePOST /words
: Adds a new word to the databasePUT /words/{id}
: Updates a word in the databaseDELETE /words/{id}
: Deletes a word from the database
- Kotlin
- Ktor
- Json
This project is licensed under the MIT License