Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

6/24/2020

Reading time:N/A min

dbgjerez/golang-rest-api-cassandra

by dbgjerez

Example using CQL and golang REST API.Cassandra can be deployed using Docker. Cassandra is a powerfull NoSQL database used to store big amount of data.DockerTo run Cassandra in Docker container:docker run -p 9042:9042 -d --name cassandra cassandraWhen Cassandra is running, the following step is run the application, linking it with the database:To build the container:docker build -t todo-api .When the application has been built as Docker image, to run it:docker run -p 8000:8000 -e CASSANDRA_URL=cassandra:9042 --link=cassandra todo-apiKubernetes

Illustration Image

Example using CQL and golang REST API.

Cassandra can be deployed using Docker. Cassandra is a powerfull NoSQL database used to store big amount of data.

Docker

To run Cassandra in Docker container:

docker run -p 9042:9042 -d --name cassandra cassandra

When Cassandra is running, the following step is run the application, linking it with the database:

To build the container:

docker build -t todo-api .

When the application has been built as Docker image, to run it:

docker run -p 8000:8000 -e CASSANDRA_URL=cassandra:9042 --link=cassandra todo-api

Kubernetes

Related Articles

spring
angular
rest

GitHub - jhipster/jhipster-sample-app-cassandra: This is a sample application created with JHipster, with the Cassandra option

jhipster

3/7/2024

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

go