There are many tutorials and repos only with Nextjs and Redux-Toolkit... Here is one with MongoDB.
# Clone this repository
$ git clone https://github.com/mb-dev-75/nextjs-reduxtoolkit-mongodb.git
# Go into the repository
$ cd nextjs-reduxtoolkit-mongodb
# Install dependencies
$ yarn (or npm) install
# Configure your database environment variable (in next.config.js)
$ MONGODB_URI: 'mongodb://localhost:27017/xxxx'
# Change the baseUri variable if needed, in particular the port
# (in redux/features/taskSlice.js and tasksSlice.js)
$ const baseUri = "http://localhost:3000";
# Run the app
$ yarn dev (or npm run dev)
This app uses the following open source packages:
Feel free to give me a ⭐ if you like my work.
MIT