Giter Club home page Giter Club logo

kotlin-ktor-mongodb-vector-search's Introduction

kotlin-ktor-mongodb-vector-search

This is the source code about my MongoDB article.

Kotlin's simplicity, Java interoperability, and Ktor's user-friendly framework combined with MongoDB Atlas' flexible cloud database provide a robust stack for modern software development. Together, we'll demonstrate and set up the Ktor project, implement CRUD operations, define API route endpoints, and run the application. By the end, you'll have a solid understanding of Kotlin's capabilities in API development and the tools needed to succeed in modern software development.

MongoDB Atlas Flow

Generating Embedded Flow

Kotlin Ktor Flow

Application Flow

Built with

Running

Follow the steps below to get the Fitness Tracker App up and running local / MongoDB Atlas.

Local

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/fitness-tracker-app.git
    cd fitness-tracker
  2. Start the application using Docker Compose:

    docker-compose up -d
  3. Compile the application jar using Gradle:

    ./gradlew shadowJar
  4. Run the application

    java -jar -DMONGO_URI="mongodb://localhost:27017/fitness/" -DMONGO_DATABASE="my_database" build/libs

MongoDB Atlas

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/fitness-tracker-app.git
    cd fitness-tracker
  2. Compile the application jar using Gradle:

    ./gradlew shadowJar
  3. Run the application

     java -jar -DMONGO_URI="mongodb+srv://<username>:<password>@<cluster>/?retryWrites=true&w=majority" -DMONGO_DATABASE="my_database" build/libs
    

Swagger UI

To explore the API documentation and interact with the Fitness Tracker App, you can use Swagger. Open your web browser and navigate to:

http://localhost:8080/swagger-ui/

OpenAPI

kotlin-ktor-mongodb-vector-search's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.