Skip to content

Latest commit

 

History

History
81 lines (51 loc) · 1.29 KB

DEVELOPMENT.md

File metadata and controls

81 lines (51 loc) · 1.29 KB

Development

Resources

Prerequisites

  • Volta (a lightweight zero-config tool manager, installation)

Setup

Install dependencies

yarn

Environment variables

Create a .env file in the root of the project

cp .dev.vars.dist .dev.vars

Now fill the .dev.vars file with the correct values.

Develop

yarn dev

Then fire specific http requests from the triggers folder.

Test

yarn coverage

Updating secrets

Local

Update the .dev.vars file

Production

Run the following command, which will prompt you for a value.

yarn wrangler secret put NAME_OF_MY_SECRET

Note: In case of the private key, be sure to preserve the newlines.

Deploy

yarn deploy

Upgrading tools

Upgrade Node

volta pin node@lts

Upgrade Yarn

yarn set version stable
volta pin yarn