Node.js backend server with GraphQL API.
- GraphQL Yoga: GraphQL server library for Node.js.
- Pothos GraphQL: Code-first GraphQL schema builder.
- µWebSockets: High-performance HTTP and WebSocket server.
- PostgreSQL: Database server with vector database capabilities.
- Cloud Firestore: Real-time document database.
- Identity Platform: authentication provider by Google Cloud.
- Knex.js: Database client for PostgreSQL and query builder.
- Node.js
v20
or newer with Yarn package manager. - Vite, Vitest, TypeScript, Prettier, ESLint: development tools.
.
├── core/ # Common application modules
├── schema/ # GraphQL schema definitions
├── Dockerfile # Docker configuration for Cloud Run
├── global.d.ts # TypeScript definition overrides
├── graphql.ts # GraphQL API schema
├── index.ts # uWebSockets web server
├── package.json # Node.js dependencies and scripts
├── start.ts # Launch script for development
├── tsconfig.json # TypeScript configuration
└── vite.config.ts # Bundler configuration
Launch the app by running:
$ yarn workspace server start # Or, `yarn server:start`
It should become available at http://localhost:8080/
Copyright © 2014-present Kriasoft. This source code is licensed under the MIT license found in the LICENSE file.