This is a simple Full Stack CRUD (Create, Read, Update, Delete) Application built using NextJS and MongoDB. It allows users to perform basic CRUD operations on a MongoDB database.
-
Node.js v12 or higher
-
MongoDB database
-
Clone this repository: git clone https://github.com/Naveen2k22/nextjs-fullstack-crud-app
-
Change directory:
cd nextjs-fullstack-crud-app
-
Install dependencies:
npm install
-
Set environment variables:
-
Copy
.sample-env
to.env
:cp .sample-env .env
-
Set the
MONGODB_URI
environment variable in.env
to the URI of your MongoDB database. -
Start the development server:
npm run dev
-
Open http://localhost:3000 in your web browser.
-
NextJS: React Framework
-
MongoDB: NoSQL database
-
Axios: Promise based HTTP client
-
Bootstrap: A CSS Framework
-
/components
: React components used throughout the application. -
/pages
: Next.js pages that correspond to routes. -
/public
: Static assets like images and favicon. -
/styles
: Global CSS stylesheets. -
/utils
: Helper functions used throughout the application. -
/.sample-env
: Example environment variable file. -
/.gitignore
: File specifying which files should be ignored by Git. -
/package.json
: Node.js package manifest file. -
/README.md
: Readme file. -
/next.config.js
: Next.js configuration file.