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
- Host: GitHub
- URL: https://github.com/aswinbennyofficial/unique-string-to-mongodb
- Owner: aswinbennyofficial
- Created: 2023-04-01T17:25:47.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-27T03:54:46.000Z (over 1 year ago)
- Last Synced: 2025-01-19T09:43:25.938Z (4 months ago)
- Language: Java
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'
```