https://population-graph-app-3ay7xzjlrq-an.a.run.app
Since the minimum number of instances is set to 0, the server will take a few seconds to start up if it has not been accessed for a while.
-
Node.js and yarn must be installed if not already present. Node.js must match the version specified in the engines in package.json. You can use nodebrew to switch Node.js versions.
-
Create
.env.local
file referring to.env.local.example
-
Run the development server:
yarn dev
- Open http://localhost:3000 with your browser to see the result.
.
├── src
│ ├── pages
│ │ ├── _app.tsx # <-- add `withTRPC()`-HOC here
│ │ ├── api
│ │ │ └── trpc
│ │ │ └── [trpc].ts # <-- tRPC HTTP handler
│ │ └── [..]
│ ├── server
│ │ ├── routers
│ │ │ ├── _app.ts # <-- main app router
│ │ │ ├── post.ts # <-- sub routers
│ │ │ └── [..]
│ │ ├── context.ts # <-- create app context
│ │ └── trpc.ts # <-- procedure helpers
│ └── utils
│ └── trpc.ts # <-- your typesafe tRPC hooks
└── [..]