Skip to content

Final Release 1.0.1 🎉

Choose a tag to compare

@guneyilmaz0 guneyilmaz0 released this 24 Feb 22:20
· 58 commits to main since this release

Final Release 1.0.1 🎉

MongoS

MongoS is a Kotlin project that provides a seamless interaction with MongoDB, offering a robust backend solution. It combines fast and optimized database operations with the flexibility of the Kotlin language.

MongoS
MongoDB


⛏ Features

  • MongoDB Connection Management: Easily connect and perform operations with MongoDB.
  • JSON Data Format: Supports using JSON format for input and output.
  • Asynchronous Support: Leverages Coroutines for asynchronous data processing.
  • Unit Testing: Features are tested using JUnit5.

⚡ Installation

  1. Clone the project repository:
    git clone https://github.com/guneyilmaz0/MongoS.git
    cd MongoS
  2. Run Gradle to install dependencies:
    ./gradlew build

🔍 Usage Example

Below is an example of adding a simple document using the MongoS project:

import net.guneyilmaz0.mongos.MongoS
import net.guneyilmaz0.mongos.MongoSObject

fun main() {
   val mongoS = MongoS("mongodb://localhost:27017", "exampleDB")
   val person = Person(0,"John Doe", 30)
   mongoS.set("persons", person.id, person)

   val john = mongoS.getObject("persons", 0, Person::class.java)
   print(john)
}

data class Person(val id: Int, val name: String, val age: Int) : MongoSObject() {
   override fun toString(): String = super.toString()
}

💡 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork this repository.
  2. Create a branch for your feature or fix:
    git checkout -b new-feature
  3. Commit your changes:
    git commit -m "Add a new feature"
    git push origin new-feature
  4. Submit a pull request.

👤 Author

This project was developed by Güney Yılmaz.
Feel free to reach out for any questions:

  • GitHub: guneyilmaz0
  • Email: guneyyilmaz2707@gmail.com.com