{"id":24664028,"url":"https://github.com/sujalchoudhari/justask","last_synced_at":"2026-05-18T01:06:54.802Z","repository":{"id":178600046,"uuid":"661634628","full_name":"SujalChoudhari/JustAsk","owner":"SujalChoudhari","description":"A survey application made in Java","archived":false,"fork":false,"pushed_at":"2023-07-14T05:09:39.000Z","size":441,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T08:48:44.466Z","etag":null,"topics":["gui","internship-task","java","mongodb","survey","swing-gui"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SujalChoudhari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-03T10:01:05.000Z","updated_at":"2023-07-06T00:42:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"e30e4ce4-2028-4ffb-873b-dea34a3477a8","html_url":"https://github.com/SujalChoudhari/JustAsk","commit_stats":null,"previous_names":["sujalchoudhari/justask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SujalChoudhari/JustAsk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2FJustAsk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2FJustAsk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2FJustAsk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2FJustAsk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SujalChoudhari","download_url":"https://codeload.github.com/SujalChoudhari/JustAsk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SujalChoudhari%2FJustAsk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","internship-task","java","mongodb","survey","swing-gui"],"created_at":"2025-01-26T05:17:37.510Z","updated_at":"2026-05-18T01:06:54.796Z","avatar_url":"https://github.com/SujalChoudhari.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JustAsk - Survey Application\n\nJustAsk is a Java-based survey application that allows administrators to create question-based surveys and manage users. Users can anonymously answer surveys, while administrators can view survey responses. This project aims to provide a simple and user-friendly platform for conducting surveys and gathering valuable insights.\n\n![Login Panel](./public/img_1.png)\n\n## Features\n\n- User and Admin login panels for secure access.\n- Admins can create question-based surveys and add new users.\n- Users can view and answer surveys anonymously.\n- Admins can view and analyze survey responses.\n\n## Installation\n\nTo run the JustAsk survey application locally, follow these steps:\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/SujalChoudhari/JustAsk.git\n   ```\n\n2. Set up the required external library:\n\n   - Download the MongoDB Java driver JAR file from [https://mongodb.github.io/mongo-java-driver/](https://mongodb.github.io/mongo-java-driver/).\n\n   - Place the `mongo-java-driver-3.12.14.jar` file in the `/Justask/external/` directory of the project.\n\n3. Import the project into your preferred Java IDE (e.g., Eclipse).\n\n4. Configure the module dependencies:\n\n   - Right-click on the project in the IDE.\n   - Select \"Build Path\" -\u003e \"Configure Build Path\".\n   - In the \"Libraries\" tab, click on \"Classpath\" -\u003e \"Add JARs\".\n   - Navigate to the `/Justask/external/` directory and select `mongo-java-driver-3.12.14.jar`.\n   - Click \"Apply\" and \"OK\" to save the changes.\n\n5. Build and run the application using your IDE's built-in tools.\n\n## Usage\n\n1. Run the `Application` (Make sure database services are active)\n\n2. Use the provided login panel to authenticate as either a User or an Admin.  \n\tAdmin account might not exist for the first time, so run the `main` of the `Database` class to create a admin.  \n\tBy default, username = `admin`, password=`admin` \n\n3. Admins can create surveys and manage users. Users can view and answer surveys anonymously.\n\n4. Admins can access the responses to the surveys and analyze the collected data.\n\n## Database Configuration\n\nThe JustAsk survey application uses MongoDB as its database. The `Database` class in the `com.sujal.justask.util` package handles the connection to the database. Here is an example of how the MongoDB connection is established:\n\n```java\npackage com.sujal.justask.util;\n\nimport com.mongodb.MongoClient;\nimport com.mongodb.client.MongoCollection;\nimport com.mongodb.client.MongoDatabase;\n\nimport org.bson.Document;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Database {\n    private MongoClient mMongoClient;\n    private MongoDatabase mDatabase;\n\n    public static Database CONNECTED_DATABASE = new Database(\"justask\");\n\n    public Database(String databaseName) {\n        mMongoClient = new MongoClient(\"localhost\");\n        mDatabase = mMongoClient.getDatabase(databaseName);\n    }\n    // ... more code\n}\n```\n\nMake sure you have MongoDB installed and running on your local machine before running the JustAsk application.\n\n## Contributing\n\nContributions to JustAsk are welcome and appreciated. To contribute, please follow these guidelines:\n\n1. Open an issue to discuss the proposed changes and obtain feedback before implementing them.\n\n2. Fork the repository and create a new branch for your feature or bug fix.\n\n3. Ensure that your code adheres to the project's coding conventions and style.\n\n4. Make sure to test your changes thoroughly.\n\n5. Submit a pull request, referencing the original issue and providing a brief description of your changes.\n\n## License\n\nJustAsk is licensed under the [MIT License](LICENSE).\n\n## Screenshots\n\n![Login Panel](./public/img_1.png)\n\n*Screenshot 1: Login Panel*\n\n![Survey Creation](./public/img_2.png)\n\n*Screenshot 2: Survey Creation*\n\n![Survey Response](./public/img_3.png)\n\n*Screenshot 3: Survey Response*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujalchoudhari%2Fjustask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujalchoudhari%2Fjustask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujalchoudhari%2Fjustask/lists"}