Look at the Nuxt 3 documentation to learn more.
Make sure to install Mongosh on your system. After Creating a DataBase, create a table with following schema:
name: {
type: 'string',
required: true,
},
phone: {
type: 'string',
required: true,
},
score: {
type: 'number',
required: true,
},
created_date: {
type: 'object',
required: true,
},
updated_date: {
type: 'object',
required: true,
}
Then create a .env file in the root of your project, type the local address of your running mongoDb. for example
#.env file
MONGODB_URI='mongodb://127.0.0.1:27017/doodle'
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.