Getting Started
Mother May I requires Redis-Stack as a session store on the server side, so first install this or spin up a docker instance.
Install Redis-Stack and Mother May I module
- The easiest way to get Redis-Stack going is to spin up a docker instance:
sudo docker run -d --name redis-stack -p 6379:6379 -p 8001:8001 redis/redis-stack:latest
- Change directory to your existing Nuxt project and install the module using your favorite package manager:
npm
npm install @andor83/mother-may-i
- Add '@andor83/mother-may-i' to your project's nuxt.config.ts. Configure as needed:
nuxt.config.ts
export default defineNuxtConfig({
modules: [
...,
'@andor83/mother-may-i'
]
mmi: {
}
})
✨ Well done! You can now start using 👩 Mother May I for authentication