Repository navigation
Final Release 1.0.1 🎉
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.
⛏ 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
- Clone the project repository:
git clone https://github.com/guneyilmaz0/MongoS.git cd MongoS - 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:
- Fork this repository.
- Create a branch for your feature or fix:
git checkout -b new-feature
- Commit your changes:
git commit -m "Add a new feature" git push origin new-feature - 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