Skip to content

mb-dev-75/nextjs-reduxtoolkit-mongodb

Repository files navigation

Basic CRUD with NextJs (SSR), Redux-Toolkit and MongoDB.


There are many tutorials and repos only with Nextjs and Redux-Toolkit... Here is one with MongoDB.



How To Use

# 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) 

Credits

This app uses the following open source packages:


Support

Feel free to give me a ⭐ if you like my work.


License

MIT