Skip to main content

Starter Advanced GraphQL Next.js TypeScript & MongoDb (CRUD)

Updated 1 min readMarkdown
Starter Advanced GraphQL Next.js TypeScript & MongoDb (CRUD)

Building a CRUD App with GraphQL, Next.js, TypeScript, and MongoDB

In this article, we will walk through the process of building a CRUD (Create, Read, Update, Delete) application using a full-stack tech stack consisting of GraphQL, Next.js, TypeScript, and MongoDB. These technologies work seamlessly together to provide an efficient and scalable development experience. Let's get started!

Prerequisites

Before we begin, make sure you have the following installed on your machine:

  • Node.js (and npm)

  • MongoDB

Github Repository

https://github.com/idurar/generic-graphql-crud-next-js-mongodb

IDURAR OPEN SOURCE ERP/CRM

Top 10 Open Source ERP / CRM

Idurar is a modern and open-source ERP/CRM system based on Node.js React.js that offers features such as sales management, customer management, and invoicing.

Github Repo : https://github.com/idurar/idurar-erp-crm

And don't forget to star our  Open Source ERP / CRM  🤩
repo in github 🚀 ?  !

Install

yarn Install

Setup & connect to your MongoDb Database

1) change this file name .env.local.tmp to .env.local
2) open .env.local and paste your MongoDB url here :  MONGODB_URI="your-mongodb-uri"

Generate schema and Type

yarn generate

Getting Started

First, run the development server:

yarn dev

Try your Graphql

http://localhost:3000/api/graphql

About the author

No comments yet. Be the first to comment.

More from this blog