GithubHelp home page GithubHelp logo

sidebytes / google-cloud-datastore-example Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 9 KB

Small sample .NET Core console application for reading/writing data with Google Cloud Datastore

C# 100.00%
google-cloud-datastore netcore2

google-cloud-datastore-example's Introduction

Google Cloud Datastore Example

Introduction

This is a small .NET Core 2.0 console application which demonstrates how to read and write data using Google Cloud Datastore.

The aim is to show how to write a complex object to cloud datastore including single child objects and array's of child objects.

The example focuses around Projects which have an Owner and contain a list of Task.

Getting it running

You'll need to have .NET Core 2 installed and a GCP account. The app uses the default GCP credentials which will need set through the cloud SDK shell (blog post on this is coming soon).

The application accepts two arguments:

  1. The GCP project ID the cloud datastore instance exists in - required
  2. The namespace to write to within cloud datastore - optional

The first argument is required, the second is optional. If argument two is not provided the default namespace in cloud datastore will be used.

Note although it should work on Linux/Mac it's only been tested on Windows.

Limitations

The data written to datastore is currently hard coded within the application. There are currently no plans to change that however it would be easy enough to wire the same code into an API or web app.

All code is provided without warranty or guarantee.

google-cloud-datastore-example's People

Contributors

andyamacdonald avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.