MO
mohsenasadi501/GraphqlSampleApp
GraphQL Server with Monogo DB
GraphQL with HotChocolate & Apollo
Serverside: ASP.Net Core API with HotChocolate GraphQL and MongoDB
Clientside: Reactjs with Apollo Client
Getting Started
Clone the repository to your local machine or download project zip file to your local machine.
For running this project you need the following items to Installed on your local machine
Serverside Prerequisites
- Microsoft Visual Studio 2022 - IDE
- Dotnet 6 - Framework
- MongoDB - DataBase Engine for store data
Clientside Prerequisites
- Microsoft Visual Studio Code - IDE
- NPM - Package Manager
Serverside Installing
Run the below command to restore, build and run the project
Restore the nuget packages
dotnet restore
Buid the project
dotnet build
Run Server Project
dotnet run
Clientside Installing
Run the below command to install dependencies and run project
Install Dependencies
npm install
Run Client Project
npm start
Deployment
This project is a easy sample for GraphQL in Dotnet with MongoDB and there is no need to Deployed
Authors
- Mohsen Asadi - Initial work - MohsenAsadi
License
This project is licensed under the MIT License
Acknowledgments
- Storing data in mongoDB
- GraphQL Query, Mutation, Subscription Example
- Apollo Client
On this page
Languages
C#60.6%TypeScript31.9%HTML4.8%CSS2.6%
Contributors
Created March 14, 2022
Updated December 7, 2024