Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get the dev-postgres branch to the minimal base state (#2597)
* wipe everything the old codebase is largely incompatible with the new changes that will be made and it is a huge hassle to do it incrementally while keeping the backwards compatibility as such the entire codebase is being wiped to start from scratch and the redundant stuff or new changes from the old codebase will be manually copied into the new codebase as needed * initialize node.js and esm project initialized an empty node.js esm project added some documents from the previous project modified dependabot config from npm to pnpm package manager * integrated lefthook for configuring git hooks added the lefthook package added the package.json scripts for enabling/disabling the git hooks * integrate typescript for node.js and esm added dependencies for typescript and node.js integration added tsconfig.json with configuration for node.js and esmodules added package.json script for checking type errors in the codebase added root /src directory for storing runtime typescript application logic * integrate biome.js for format/lint added dependencies for integrating biome.js added biome.jsonc for configuring biome.js format/lint added package.json scripts for checking and fixing format/lint issues with biome.js added git hook commands for biome.js * integrate swc for typescript to javascript transpilation added dependencies for swc transpilation added package.json script for transpiling typescript code in /src directory to javascript for production usage * integrate fastify server added dependencies for fastify added initial code for starting a fastify server added type-safe json schema parsing for environment variables added .env file for development and production environments * integrate mercurius graphql handler and pothos graphql schema builder added packages for graphql, mercurius and pothos integrated fastify graphql route handling using mercurius added docs for pothos and developer workflows related to it added script for generating the sdl graphql schema from pothos schema * integrate drizzle orm and postgres added packages for drizzle orm and postgres added drizzle schema definition in postgres dialect reflecting the domain models of talawa application added configuration environment variables for postgres client added fastify plugin for registering the drizzle client on the global fastify instance added package.json scripts for drizzle orm, postgres and sql related workflows added zod enums for easily reusing type and runtime values between the drizzle schema and the graphql schema * integrated general and graphql specific testing infrastructure added the packages for general and graphql specific testing needs added the configuration for vitest added the tooling for writing type safe graphql operations in tests added the scripts for checking schema errors in graphql operations used in the tests added a dummy query for showing the testing workflow, will be removed in the future added relevant documentation for the test directory added the env file for ci environment * integrated docker, docker compose and devcontainer added OCI compliant Containerfile with multi-staged builds for creating talawa api docker images for different environments added docker compose configuration for automating setup of talawa api infrastructure in different environments added devcontainer configuration for automating talawa api development environment setup added env files specific to different talawa api environments * added pull request github actions workflow
- Loading branch information