Pokemon collection builder
This repo uses pnpm
(rather than yarn
), get it with npm i -g pnpm
.
Then, pnpm i
(short for pnpm install
) to install deps for all workspaces.
The server is a standard node + typescript project, and uses ts-eager
to run the server in dev, and build's with normal tsc
for prod.
-
cd packages/server
-
cp .env.example .env
-
docker-compose -f dev.docker-compose.yml up -d
-
yarn dev
oryarn dev:server
from the root. -
Check out the GQL schema @
localhost:4000/altair
apollo-server-core
& apollo-server-express
are included, as that's the combination of dependencies we'll be using to setup our graphql server. See the Quick Start guide on this: https://www.apollographql.com/docs/apollo-server/integrations/middleware/#apollo-server-express
MikroORM is our database ORM of choice, used with postgres.
The client uses vite, which is a supa fast alternative to tools like create-react-app.
To start, on port 3000:
- Make sure the server is running, as the client uses the graphql server for codegen and just in general.
cd packages/client
yarn dev
oryarn dev:client
from the root.