Implementation of DataStax BootCamp: Full Stack Apps with Cassandra in Go
- Create AstraDB Token to obtain
Client_ID
andClient_Secret
- Create AstraDB instance
- Download the Secure Connect Bundle
- Create
.env
from.env.sample
- Using the CQL Console, create the required keyspace and tables
go run main.go
Verified against TodoBackEnd Specs
GET
Retrieve complete list of all todosPOST
Create a todoDELETE
Delete all todos
GET
Get a todoDELETE
Delete a todoPATCH
Modify a todo
CREATE TABLE todos.todoitems (
user_id text,
item_id timeuuid,
title text,
url text,
completed boolean,
offset int,
PRIMARY KEY ((user_id), item_id)
) WITH CLUSTERING ORDER BY (item_id ASC);
Gin Web Framework Docs
Gin PKG Docs
Gin Github
Go Tutorial: Gin