Using Cloud Functions native, without any framework like serverless to do this. it will initially run a express server in the future, whe will see.
To run the project locally you will need to use the the functions-framework from the google team, to install it execute the following command.
To use it
or just run
to run with hot reload use
It will probably run on port 8080, after that just be happy, target it with postman or your app.
With docker installed in the machine, just run the following command
To deploy it use the following command
To consult the others flag and options just go to official documentation