The app's is a testing environment for SvelteKit API endpoints efficiency. API exposes standard endpoints and GraphQL Apollo Server endpoint for deeply nested relational data query and mutation efficiency measurement.
The project contains generated sample data in prisma/database.sqlite3
. Additional data can be created using api/populate
endpoint.
The SvelteKit app lives on Express server to resolve issues related to CORS origin within Apollo Server while running in adapter's bare NodeJS.
Install dependencies:
npm install
Generate Prisma Client:
npx prisma generate
Build the project:
npm run build
Run the Express server:
npm run start