This repository provides a powerful GraphQL server built with NestJS, along with a client-side playground for easy API exploration and testing. Whether you're developing a new GraphQL-based application or just want to experiment with GraphQL queries and mutations, this project offers a convenient setup.
- GraphQL Server using NestJS for building robust, maintainable APIs.
- A client-side GraphQL playground powered by Apollo Client for testing queries and mutations.
- Scalable folder structure for organizing your GraphQL schema, resolvers, and services.
- JWT-based authentication system for securing your API endpoints (currently not implement).
- Sample GraphQL schema and resolvers to get you started quickly.
- Docker containerization for easy deployment and development environment consistency.
- Clone this repository.
- Install the necessary dependencies using
pnpm i
. - Configure your environment variables using
cp .env.example .env
and update yourDATABASE_URL
andNODE_ENV
mode . - Generate prisma types and seed data using using
npx prisma generate
&&npx prisma db seed
- Start the server using
pnpm run:dev
or use Docker for containerized development. - Access the client-side playground at
http://localhost:3000/graphql
and begin exploring your API. - For more about documentation here
Feel free to modify and extend this project to suit your specific needs. You can add new GraphQL types, resolvers, and services to build out your API, or integrate it into your existing NestJS project.
For detailed information on how to use and extend this GraphQL NestJS server, check out the documentation cd docs && pnpm i && pnpm dev
.
Contributions, bug reports, and feature requests are welcome! Please open an issue or create a pull request to collaborate with the community.
This project is licensed under the MIT License.
Happy GraphQL coding!🔥