Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 1.88 KB

README.md

File metadata and controls

60 lines (46 loc) · 1.88 KB

Population Graph App

lint Status build Status

Demo

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.

Tech Stack

Getting Started

  1. 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.

  2. Create .env.local file referring to .env.local.example

  3. Run the development server:

yarn dev
  1. Open http://localhost:3000 with your browser to see the result.

Directory Structure

.
├── 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
└── [..]