Getting Started
Installation#
npm install @pgtyped/cli @pgtyped/runtime typescript(TS is a required peer dependency)- 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.