Authentication demo web application with session based on Nuxt 3
- Node v16.0 above
- Redis v7.0
- MongoDB v6.0
Install data:
$ mongoimport --drop --db sampleDB --collection user --file data/user.json
Edit .env
file:
SESSION_REDIS_URL=redis://localhost:6379/
MONGO_URL=mongodb://localhost:27017/sampleDB
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
Start the development server on http://localhost:3000
# yarn
yarn dev
# npm
npm run dev
Build the application for production:
# yarn
yarn build
# npm
npm run build
Launch the application for production:
# yarn
yarn start
# npm
npm start