-
Create a project in the Google Cloud Console. If you haven't already created a project, create one now. Projects enable you to manage all Google Cloud resources for your app, including deployment, access control, billing, and services.
- Open the Cloud Console.
- In the drop-down menu at the top, select Create a project.
- Give your project a name.
- Make a note of the project ID, which might be different from the project name. The project ID is used in commands and in configurations.
-
Enable billing for your project. If you haven't already enabled billing for your project, enable billing now. Enabling billing allows the application to consume billable resources such as running instances and storing data.
-
Install the Google Cloud SDK. If you haven't already installed the Google Cloud SDK, install and initialize the Google Cloud SDK now. The SDK contains tools and libraries that enable you to create and manage resources on Google Cloud.
-
Enable APIs for your project. Enable the following APIs in the Cloud Console:
- Cloud Firestore API
- Cloud Pub/Sub API
- Cloud Storage API
- Cloud Translation API
- Cloud SQL Admin API
- Cloud Key Management Service (KMS) API
-
Download or clone this repo with
git clone https://github.com/GoogleCloudPlatform/getting-started-dotnet
-
Set the environment variables:
GoogleCloudSamples:ProjectId= your project id displayed on the Google Cloud Console.GoogleCloudSamples:BucketName= the name of the Google Cloud Storage bucket you created.GoogleCloudSamples:ConnectionStringCloudSql= the connection string for the Cloud SQL database you created, in the format of "Server=1.2.3.4;Database=bookshelf;Uid=dotnetapp;Pwd=password".
- Ensure you have the following tools installed and in your PATH:
- .NET Core SDK
- PowerShell
-
Run the test script from the root of the repository:
.\BuildAndRunTests.ps1