Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/DogPawHat/fantastic-dollop.
Something went wrong. Try again.
Files
- TypeScript 83%
- HTML 16%
- JavaScript <1%
README.md
Installation requirements #
- Node 18
- pnpm 7
- Install with
pnpm install
Commands #
pnpm dev #
Runs the application at localhost:4000
- Comment form is at
localhost:4000. Refreshing after submission is required. - GraphQL API is at
localhost:4000/graphql. Api is documented insrc/server/schema.graphql
pnpm test #
Runs a full intergration test of the API, using the prisma/test.db as a store.
pnpm run generate #
Regenerates schema.graphql
pnpm run check #
Checks ts files for type errors
Tech stack over view #
To implement the API for the application, I went with GraphQL as I find it easier to think in the terms of querys and mutations then I do for REST. I've always like it's strong type system and it's easy to read a schema and reason about it.
Front end is a very straightforward HTML file with inline vallina JS and the dev build of TailwindCSS included via CDN. I'm thinking of the comment block template in that file as a "component" to put data into.