Getting Started
Installation#
npm install -D @pgtyped/cli typescript(typescript is a required peer dependency for pgtyped)npm install @pgtyped/runtime(runtime is the only required runtime dependency for pgtyped)- Create a PgTyped
config.jsonfile. - Run
npx pgtyped -w -c config.jsonto start PgTyped in watch mode.
Configuration#
PgTyped requires a config.json file to run, a basic config file looks like this:
config.json
Refer to the CLI page for more info on the config file, available CLI flags and environment variables.
note
If you are having trouble configuring PgTyped, you can refer to the example app for a preconfigured example.