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

  1. 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
  1. Change directory to your existing Nuxt project and install the module using your favorite package manager:
npm
npm install @andor83/mother-may-i
yarn
yarn install @andor83/mother-may-i
pnpm
pnpm install @andor83/mother-may-i
bun
bun install @andor83/mother-may-i
  1. 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