/client

Client-side

Primary LanguageTypeScriptMIT LicenseMIT

client

Production deployment Continuous Integration Docs pre-commit.ci status code style: prettier

Client is using TypeScript, NextJS and GraphQL.


Client website: https://stegoer.netlify.app/

Source code: https://github.com/stegoer/client


Installation

Install dependencies

npm install

Create the .env.local file

Create a .env.local file and copy the contents of .env.local.example file into the .env.local file

cp .env.local.example .env.local

Development

Dev server

npm run dev

GraphQL

GraphQL Code Generator is used to generate type definitions and hooks for queries and mutations. See client/src/graphql/codegen.yml for configuration options.

Codegen

npm run gen

To add a new query or mutation head to src/graphql/user or src/graphql/image and add a new file.

To add a new fragment head to the src/graphql/fragments folder.

Docs

npm run docs:build

TypeDoc is used to generate documentation which is then published via the Docs GitHub Action on GitHub Pages.

Contributing

pre-commit install

License

Developed under the MIT license.