An open API service indexing awesome lists of open source software.

https://github.com/aswinbennyofficial/unique-string-to-mongodb

The project generates more than 1 million random 6 digit unique string and inserts into mongoDB collection
https://github.com/aswinbennyofficial/unique-string-to-mongodb

Last synced: 2 months ago
JSON representation

The project generates more than 1 million random 6 digit unique string and inserts into mongoDB collection

Awesome Lists containing this project

README

        

# Unique-String-To-mongoDB
The program generates random unique alphanumeric strings and uploads into mongodb database in defined schema. The default is 1 million 6 digits unique alphanumeric strings.

It is project done as a part of technocean event by Lovely Professional University. This project will be helpful if you are making a link shortner like bitly.

## Requirements

- Add the following dependency on 'build.gradle'
- Edit Key.java and include your mongo db credentials in `String key="" `
- In the Main.java, replace the variable `capacity=` with your desired amount of unique strings to be uploaded.

```
dependencies {
implementation 'org.mongodb:mongodb-driver-sync:4.9.0'
}```
- JDK used was 17.0.6

## Excecution
- Rename 'Key-example.java' in the above directory to 'Key.java' and insert the mongodb URi
- Edit or run the 'Main.java' file in the 'src/main/java/org/example'
```