Installation du projet & des principales dépendances.
Configuration du nuxt.config.ts
Showing
12 changed files
with
218 additions
and
0 deletions
.gitignore
0 → 100644
| 1 | +# Nuxt Minimal Starter | ||
| 2 | + | ||
| 3 | +Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. | ||
| 4 | + | ||
| 5 | +## Setup | ||
| 6 | + | ||
| 7 | +Make sure to install dependencies: | ||
| 8 | + | ||
| 9 | +```bash | ||
| 10 | +# npm | ||
| 11 | +npm install | ||
| 12 | + | ||
| 13 | +# pnpm | ||
| 14 | +pnpm install | ||
| 15 | + | ||
| 16 | +# yarn | ||
| 17 | +yarn install | ||
| 18 | + | ||
| 19 | +# bun | ||
| 20 | +bun install | ||
| 21 | +``` | ||
| 22 | + | ||
| 23 | +## Development Server | ||
| 24 | + | ||
| 25 | +Start the development server on `http://localhost:3000`: | ||
| 26 | + | ||
| 27 | +```bash | ||
| 28 | +# npm | ||
| 29 | +npm run dev | ||
| 30 | + | ||
| 31 | +# pnpm | ||
| 32 | +pnpm dev | ||
| 33 | + | ||
| 34 | +# yarn | ||
| 35 | +yarn dev | ||
| 36 | + | ||
| 37 | +# bun | ||
| 38 | +bun run dev | ||
| 39 | +``` | ||
| 40 | + | ||
| 41 | +## Production | ||
| 42 | + | ||
| 43 | +Build the application for production: | ||
| 44 | + | ||
| 45 | +```bash | ||
| 46 | +# npm | ||
| 47 | +npm run build | ||
| 48 | + | ||
| 49 | +# pnpm | ||
| 50 | +pnpm build | ||
| 51 | + | ||
| 52 | +# yarn | ||
| 53 | +yarn build | ||
| 54 | + | ||
| 55 | +# bun | ||
| 56 | +bun run build | ||
| 57 | +``` | ||
| 58 | + | ||
| 59 | +Locally preview production build: | ||
| 60 | + | ||
| 61 | +```bash | ||
| 62 | +# npm | ||
| 63 | +npm run preview | ||
| 64 | + | ||
| 65 | +# pnpm | ||
| 66 | +pnpm preview | ||
| 67 | + | ||
| 68 | +# yarn | ||
| 69 | +yarn preview | ||
| 70 | + | ||
| 71 | +# bun | ||
| 72 | +bun run preview | ||
| 73 | +``` | ||
| 74 | + | ||
| 75 | +Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. | 
app.vue
0 → 100644
assets/css/main.css
0 → 100644
File mode changed
eslint.config.mjs
0 → 100644
nuxt.config.ts
0 → 100644
| 1 | +// https://nuxt.com/docs/api/configuration/nuxt-config | ||
| 2 | +export default defineNuxtConfig({ | ||
| 3 | + compatibilityDate: '2024-11-01', | ||
| 4 | + devtools: { enabled: true }, | ||
| 5 | + | ||
| 6 | + app: { | ||
| 7 | + head: { | ||
| 8 | + title: 'TMDB Movie App', | ||
| 9 | + htmlAttrs: { | ||
| 10 | + lang: "fr", | ||
| 11 | + }, | ||
| 12 | + meta: [ | ||
| 13 | + { charset: 'utf-8' }, | ||
| 14 | + { name: 'viewport', content: 'width=device-width, initial-scale=1' }, | ||
| 15 | + { name: 'description', content: 'Application de films utilisant l\'API TMDB' }, | ||
| 16 | + { name: "format-detection", content: "telephone=no" }, | ||
| 17 | + ], | ||
| 18 | + link: [ | ||
| 19 | + { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } | ||
| 20 | + ] | ||
| 21 | + } | ||
| 22 | + }, | ||
| 23 | + | ||
| 24 | + // css: ['~/assets/css/main.scss'], | ||
| 25 | + | ||
| 26 | + modules: [ | ||
| 27 | + '@nuxt/eslint', | ||
| 28 | + '@nuxt/icon', | ||
| 29 | + '@nuxt/image', | ||
| 30 | + [ | ||
| 31 | + "@pinia/nuxt", | ||
| 32 | + { | ||
| 33 | + autoImports: [ | ||
| 34 | + // Automatically imports. | ||
| 35 | + "defineStore", // Equal : import { defineStore } from 'pinia'. | ||
| 36 | + ["defineStore", "definePiniaStore"], // Equal : import { defineStore as definePiniaStore } from 'pinia'. | ||
| 37 | + ], | ||
| 38 | + }, | ||
| 39 | + ], | ||
| 40 | + 'pinia-plugin-persistedstate/nuxt', | ||
| 41 | + '@nuxt/scripts', | ||
| 42 | + '@nuxt/test-utils', | ||
| 43 | + '@nuxt/ui', | ||
| 44 | + '@nuxtjs/tailwindcss', | ||
| 45 | + '@vueuse/nuxt', | ||
| 46 | + ], | ||
| 47 | + // Persisted state config. | ||
| 48 | + piniaPluginPersistedstate: { | ||
| 49 | + storage: 'localStorage', | ||
| 50 | + cookieOptions: { | ||
| 51 | + sameSite: 'lax', | ||
| 52 | + }, | ||
| 53 | + debug: true, | ||
| 54 | + }, | ||
| 55 | + | ||
| 56 | + runtimeConfig: { | ||
| 57 | + // The private keys which are only available server-side. | ||
| 58 | + apiSecret: "123", | ||
| 59 | + // Keys within public are also exposed client-side. | ||
| 60 | + public: { | ||
| 61 | + apiTMDBSecret: process.env.NUXT_ENV_TMDB_API_KEY, | ||
| 62 | + }, | ||
| 63 | + }, | ||
| 64 | +}) | 
package-lock.json
0 → 100644
This diff could not be displayed because it is too large.
package.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "nuxt-app", | ||
| 3 | + "version": "0.1.0", | ||
| 4 | + "private": true, | ||
| 5 | + "type": "module", | ||
| 6 | + "scripts": { | ||
| 7 | + "build": "nuxt build", | ||
| 8 | + "dev": "nuxt dev", | ||
| 9 | + "generate": "nuxt generate", | ||
| 10 | + "preview": "nuxt preview", | ||
| 11 | + "postinstall": "nuxt prepare" | ||
| 12 | + }, | ||
| 13 | + "dependencies": { | ||
| 14 | + "@nuxt/eslint": "^1.3.0", | ||
| 15 | + "@nuxt/icon": "^1.12.0", | ||
| 16 | + "@nuxt/image": "^1.10.0", | ||
| 17 | + "@nuxt/scripts": "^0.11.6", | ||
| 18 | + "@nuxt/test-utils": "^3.17.2", | ||
| 19 | + "@nuxt/ui": "^2.22.0", | ||
| 20 | + "@pinia/nuxt": "^0.11.0", | ||
| 21 | + "@unhead/vue": "^2.0.8", | ||
| 22 | + "@vueuse/core": "^13.1.0", | ||
| 23 | + "@vueuse/nuxt": "^13.1.0", | ||
| 24 | + "eslint": "^9.25.1", | ||
| 25 | + "nuxt": "^3.16.2", | ||
| 26 | + "pinia": "^3.0.2", | ||
| 27 | + "pinia-plugin-persistedstate": "^4.2.0", | ||
| 28 | + "vue": "^3.5.13", | ||
| 29 | + "vue-router": "^4.5.0" | ||
| 30 | + }, | ||
| 31 | + "devDependencies": { | ||
| 32 | + "@nuxtjs/tailwindcss": "^6.13.2" | ||
| 33 | + } | ||
| 34 | +} | 
public/favicon.ico
0 → 100644
No preview for this file type
public/robots.txt
0 → 100644
server/tsconfig.json
0 → 100644
tsconfig.json
0 → 100644
- 
Please register or login to post a comment