This project serves as a practical demonstration of implementing CRUD (Create, Read, Update, Delete) operations within a Nuxt 3 application with integration of MongoDB as the backend database solution. By leveraging Server Routes & Middleware, it showcases how to seamlessly manage books and authors, including their relationships. Dive into the codebase to explore best practices for handling data in a Nuxt 3 environment and discover how to build robust CRUD functionality effortlessly.
Here's a list of the technologies and tools used in this project:
Add mongo uri to .env file.
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn installYou can do npm install --force (Force if you get an error regarding pinia)
Start the development server on http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn devBuild the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn buildLocally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn previewCheck out the deployment documentation for more information.
Create and start the development container:
docker compose up --build -dStop and remove the development container:
docker compose downCreate and start the production container:
docker compose -f compose.production.yaml up --build -dStop and remove the production container:
docker compose -f compose.production.yaml down