{"id":19818020,"url":"https://github.com/mekhyw/cookiebot-backend","last_synced_at":"2025-06-30T02:07:22.588Z","repository":{"id":61183330,"uuid":"537933853","full_name":"MekhyW/COOKIEBOT-backend","owner":"MekhyW","description":"Data management backend for the Cookiebot Telegram bot and its clones","archived":false,"fork":false,"pushed_at":"2025-03-13T03:04:50.000Z","size":316,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T11:36:40.405Z","etag":null,"topics":["java","mongodb","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MekhyW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","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,"zenodo":null}},"created_at":"2022-09-17T21:24:41.000Z","updated_at":"2025-03-04T16:10:14.000Z","dependencies_parsed_at":"2024-05-03T02:59:54.272Z","dependency_job_id":"cf68de17-e7eb-4c2b-92ad-1f020997d006","html_url":"https://github.com/MekhyW/COOKIEBOT-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MekhyW/COOKIEBOT-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MekhyW%2FCOOKIEBOT-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MekhyW%2FCOOKIEBOT-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MekhyW%2FCOOKIEBOT-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MekhyW%2FCOOKIEBOT-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MekhyW","download_url":"https://codeload.github.com/MekhyW/COOKIEBOT-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MekhyW%2FCOOKIEBOT-backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262697276,"owners_count":23349894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["java","mongodb","spring-boot"],"created_at":"2024-11-12T10:14:25.820Z","updated_at":"2025-06-30T02:07:22.537Z","avatar_url":"https://github.com/MekhyW.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COOKIEBOT-backend\n\n[![Swagger](https://img.shields.io/badge/-Swagger-%23Clojure?style=for-the-badge\u0026logo=swagger\u0026logoColor=white)](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/MekhyW/COOKIEBOT-backend/refs/heads/main/docs/openapi.json)\n\nData management and scheduler backend for the Cookiebot and Bombot Telegram bots\n\nThis project aims to manage a NoSQL (MongoDB) database with https.\n\nUsing: Java 17 + Spring Boot + Spring Web + Spring Data MongoDB + Spring Security\n\n## RELATED SERVER-SIDE PROJECTS\n\n[Systemd Service](https://gitlab.com/myghiproj/ahss/-/blob/main/SystemdServices/javaserver%40.service)\n\n[Update Script](https://gitlab.com/myghiproj/ahss/-/blob/main/BashScripts/cookiebot-update.sh)\n\n## CONFIGURATION GUIDE\n\nIt's necessary to create a file called \"application.properties\" inside src/main/resources folder.\n\n### Insert the URI string to connect your MongoDB database:\n\n\tspring.data.mongodb.uri=YourUriHere\n\n### Set your user and password, always with the role \"ADMIN\":\n\n\tspring.security.user.name=username\n\tspring.security.user.password=password\n\tspring.security.user.roles=ADMIN\n\n### Configure the JWT token validation\n\n```yaml\nspring:\n  security:\n    oauth2:\n      resourceserver:\n        jwt:\n          jwk-set-uri: http://\u003chost\u003e/.well-known/jwks.json\n          issuer-uri: http://\u003chost\u003e\n```\n\n### Configure https to encrypt your connection:\n\nBy default, unprivileged users on Linux are blocked from hosting on ports under 1024.\n\nIn order to allow any port to any user, insert this line into the file /etc/sysctl.d/99-sysctl.conf with a text editor:\n\n\tnet.ipv4.ip_unprivileged_port_start=0\n\nThis new configuration will be effective after a reboot. You can also apply it immediately:\n\t\n\tsudo sysctl -p /etc/sysctl.d/99-sysctl.conf\n\nAfter that, use keytool to generate a certificate (for a self-signed https):\n\n\tkeytool -genkey -alias bootsecurity -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore bootsecurity.p12 -validity 36500\n\t\nCopy the bootsecurity.p12 file to the root folder of the project and finally add these settings to your application.properties:\n\n\tserver.port=443\n\tserver.ssl.key-store=bootsecurity.p12\n\tserver.ssl.key-store-password=YourCertificatePasswordHere\n\tserver.ssl.key-store-type=PKCS12\n\tserver.ssl.key-alias=bootsecurity\n\nAnd you're done!\n\nAfter compiling to a jar file, the software will look for a bootsecurity.p12 file on the same directory as the .jar file itself.\n\n\n## Swagger\n\nThe swagger is available at `/swagger-ui/index.html`\n\n### Generating the Swagger file\n\n```shell\nmvn springdoc-openapi:generate\n```\n\nThe OpenAPI file will be generated at [`docs/openapi.json`](./docs/openapi.json)\n\nYou can open the file on a swagger editor such as https://editor.swagger.io/ or use an IDE such as **VSCode** with the swagger extension installed.\n\n## Contributing\n\nWe love contributions. You can follow the [contributing documentation](./contributing.md).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmekhyw%2Fcookiebot-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmekhyw%2Fcookiebot-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmekhyw%2Fcookiebot-backend/lists"}