- Node 14.x+ (or nvm)
- Yarn
- PostgreSQL (or docker)
-
From root project directory, install dependencies:
yarn
-
Copy
testrunner/example.env
totestrunner/.env
and update according to your local configuration. -
Run a local instance of the test runner:
yarn testrunner dev
-
Copy
server/example.env
toserver/.env
and update according to your local configuration. -
Initialize the database:
yarn server prisma db push
-
Run a local instance of the backend:
yarn server dev
-
Copy
client/example.env
toclient/.env
and update according to your local configuration. -
Launch snowpack dev server:
yarn client dev
GraphQL client IDE
- While client + backend dev servers are running, visit:
http://localhost:3000/altair
ORM Database Admininistration
-
Run:
yarn server prisma studio
-
Then visit
http://localhost:5555
Develop UI components in isolation
-
While the client dev server is running:
yarn client cosmos
-
Then visit
http://localhost:5000
-
Run eslint/prettier across all workspaces:
yarn lint # or yarn lint:fix
-
Build all workspaces:
yarn build
-
Use
yarn (testrunner|server|client) [command]
to execute yarn commands in a workspace:yarn testrunner yarn server yarn client