This document explains how to create a project on GCP and where to find products to deploy your backend (Cloud Run and/or Cloud Functions)
Table of Contents
- Create an account on Google Cloud Platform.
NOTE: if you are using your private account and insert your card details, GCP has a free trail that gives $300 credits and free tier, which means you have a free usage of different services within certain limits.
For Cloud Functions the limit is 2 million calls* 馃檭
-
On GCP all resources should be collected under a project - think about it as a folder that has all the things related to one project (images, files, functions etc). Create a new project:

-
Give your project a name (e.g.
thesis) and choose an organization (can beNo organizationas well). Click onCreate project. -
Go to the menu on the left side. There is an extremely long list of all the different GCP products and services. Click on
View all productsto expand it even more and chooseCloud Run. You find it under the sectionServerless. You can pin this product - it will be more comfortable accessing it later.
-
In the project you have two options:
- deploying a container (use when you have several endpoints)
- write a function (use when you have a single endpoint)
NOTE: it will be unclickable if you don't have a payment method connected to it. You would need to link a card to it - but you should not be charged unless you go over the free limit. For this click on Billing on the left side.
ANOTHER NOTE: New users receive $300 credits to use on GCP for 3 months (which is quite a lot). You could activate them instead.
You can deploy your server directly from visual code:
Note: for testing purposes you can leave unauthenticated invocations (can be called by anyone), but it is recommended to use authentication for protection. Make sure you control your spending and delete the unused resources.


