Skeleton for Google Cloud Functions projects (base / project starter)

This is a repository intended to serve as a starting point if you want to bootstrap a google cloud function project in TypeScript.

Features

Recommended Links

Development

# install commitizen 
npm i -g commitizen

# run prettier watcher (run in another terminal)
yarn prettier:watch

# add all changes to repository and create bew commit
yarn commit

# configure project to create new commit
git cz

Running the app

# install dependencies
yarn

# run in dev mode on port 3000
yarn dev

# generate production build
yarn build

# run generated content in dist folder on port 3000
yarn start

Testing

Jest with supertest

yarn test

Linting

# run linter
yarn lint

# fix lint issues
yarn lint:fix