{"id":16388582,"url":"https://github.com/phact/quarkus-astra-demos","last_synced_at":"2025-06-14T07:34:33.828Z","repository":{"id":53591648,"uuid":"277725198","full_name":"phact/quarkus-astra-demos","owner":"phact","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-22T17:07:10.000Z","size":3157,"stargazers_count":10,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-22T16:11:46.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phact.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-07T05:28:49.000Z","updated_at":"2021-08-07T19:38:50.000Z","dependencies_parsed_at":"2022-09-21T20:35:20.807Z","dependency_job_id":null,"html_url":"https://github.com/phact/quarkus-astra-demos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phact%2Fquarkus-astra-demos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phact%2Fquarkus-astra-demos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phact%2Fquarkus-astra-demos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phact%2Fquarkus-astra-demos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phact","download_url":"https://codeload.github.com/phact/quarkus-astra-demos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228364059,"owners_count":17908319,"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":[],"created_at":"2024-10-11T04:29:27.276Z","updated_at":"2024-12-07T01:57:11.375Z","avatar_url":"https://github.com/phact.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quarkus-astra-demo\n\n**`ASTRA`** is the simplest way to run Cassandra with zero operations at all - just push the button and get your cluster. No credit card required, $25.00 USD credit every month, roughly 5M writes, 30M reads, 40GB storage monthly - sufficient to run small production workloads.  \n\nTo use this project:\n\n✅ Clone the repo\n\n✅ Register (if needed) and Sign In to Astra [https://astra.datastax.com](https://dtsx.io/3r8nOlJ): You can use your `Github`, `Google` accounts or register with an `email`.\n\n_Make sure to chose a password with minimum 8 characters, containing upper and lowercase letters, at least one number and special character_\n\n✅ Create a \"pay as you go\" plan\n\nFollow this [guide](https://docs.datastax.com/en/astra/docs/creating-your-astra-database.html), to set up a pay as you go database with a free $25 monthly credit.\n\n- **Select the pay as you go option**: Includes $25 monthly credit - no credit card needed to set up.\n\nYou will find below which values to enter for each field.\n\n- **For the database name** - `free_db.` While Astra allows you to fill in these fields with values of your own choosing, please follow our recommendations to ensure the application runs properly.\n\n- **For the keyspace name** - `free`. It's really important that you use the name \"free\" for the code to work.\n\n_You can technically use whatever you want and update the code to reflect the keyspace. This is really to get you on a happy path for the first run._\n\n- **For provider and region**: Choose and provider (either GCP or AWS). Region is where your database will reside physically (choose one close to you or your users).\n\n- **Create the database**. Review all the fields to make sure they are as shown, and click the `Create Database` button.\n\nYou will see your new database `pending` in the Dashboard.\n\n![my-pic](https://github.com/datastaxdevs/shared-assets/blob/master/astra/dashboard-pending-1000-update.png?raw=true)\n\nThe status will change to `Active` when the database is ready, this will only take 2-3 minutes. You will also receive an email when it is ready.\n\n✅ [Download your secure connect bundle](https://docs.datastax.com/en/astra/docs/obtaining-database-credentials.html) from the connect screen\n\n✅ [Create a token for your app](https://docs.datastax.com/en/astra/docs/manage-application-tokens.html) to use in the settings screen\n\n✅ Create and populate your application.properties file:\n\n    cp  ./src/main/resources/application.properties.template ./src/main/resources/application.properties\n\n✅ Replace the following lines to point at your scb and with your token:\n\n    quarkus.cassandra.cloud.secure-connect-bundle=\u003c\u003c/PATH_TO_SCB.ZIP\u003e\u003e\n    quarkus.cassandra.auth.password=AstraCS:\u003c\u003cREPLACE_ME:REPLACE_ME\u003e\u003e\n\nIf you prefer to stub out the code yourself, pull the `puzzle` branch instead and give it a try. This `main` branch has the required endpoints stubbed out.\n\nThis project uses Quarkus, the Supersonic Subatomic Java Framework.\n\nIf you want to learn more about Quarkus, please visit the website: https://quarkus.io/\n\n## Running the application in dev mode\n\nYou can run your application in dev mode that enables live coding using:\n```\n./mvnw clean quarkus:dev\n```\n\n📗 **Expected output**\n![quarkus dev output](https://user-images.githubusercontent.com/23346205/110409249-f9b61500-8054-11eb-8f73-b366a5a0e045.png)\n\n\nOnce the application is running navigate to [http://localhost:8080](http://localhost:8080).\n\n![localhost 8080](https://user-images.githubusercontent.com/23346205/110409508-64ffe700-8055-11eb-93bd-cd4b78d03f95.png)\n\n\n## Packaging and running the application\n\nThe application can be packaged using `./mvnw package`.\nIt produces the `quarkus-run.jar` file in the `/target/quarkus-app` directory.\nBe aware that it’s not an _über-jar_ as the dependencies are copied into the `target/quarkus-app/lib` directory.\n\nThe application is now runnable using `java -jar target/quarkus-app/quarkus-run.jar`.\n\n## Creating a native executable\n\nYou can create a native executable using: `./mvnw package -Pnative`.\n\nOr, if you don't have GraalVM installed, you can run the native executable build in a container using: `./mvnw package -Pnative -Dquarkus.native.container-build=true`.\n \n  \u003e Make sure you have a container runtime (docker/podman/etc) installed\n\nYou can then execute your native executable with: `./target/quarkus-astra-demo-0.01-runner`\n\nIf you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image.\n\n## Running on Red Hat Developer Sandbox\nRun this application on the free [Red Hat Developer Sandbox](https://developers.redhat.com/developer-sandbox). All you need to do is create an account and then [click here](https://workspaces.openshift.com/f?url=https://github.com/phact/quarkus-astra-demos/tree/todo) to load the workspace!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphact%2Fquarkus-astra-demos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphact%2Fquarkus-astra-demos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphact%2Fquarkus-astra-demos/lists"}