-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
276 additions
and
64 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Présentation du 21/10/2024 | ||
|
||
## Aspect techniques | ||
- 100% orienté objet | ||
- Typescript | ||
- utilisation d'un router | ||
- une page blank qui se dérive en plusieurs pages (polymorphisme) | ||
- Utilisation de .env | ||
- Prise en charge à 95% du format mobile | ||
|
||
## Aspect fonctionnel | ||
- Page d'acceuil pour se connecter à Spotify | ||
- Page de présentation des Artistes et Musiques favoris | ||
- Page Artistes | ||
- Page Musiques | ||
|
||
## Aspect API Spotify | ||
|
||
- OAuth2 avec PKCE pour SPA | ||
- Stockage des tokens dans le local storage | ||
- Utilisation de l'API pour récupérer les artistes et musiques favoris | ||
- Utilisation de l'API pour récupérer les détails d'un artiste et de musique | ||
- Utilisation de l'API pour récupérer les détails de l'utilisateur | ||
|
||
## Aspcet non fonctionnel | ||
|
||
- Page d'acceuil très jolie |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
const { merge } = require("webpack-merge"); // Fusionne les configurations communes et spécifiques à l'environnement | ||
const common = require("./webpack.common.js"); // Importation de la configuration commune | ||
const { merge } = require("webpack-merge"); | ||
const common = require("./webpack.common.js"); | ||
const path = require("path"); | ||
|
||
module.exports = merge(common, { | ||
mode: "development", // Définit le mode en développement, active des outils comme la source map | ||
devtool: "inline-source-map", // Active une source map pour faciliter le débogage (lie le code minifié au code source) | ||
mode: "development", | ||
devtool: "inline-source-map", | ||
devServer: { | ||
static: "./dist", // Répertoire à servir (ici, le répertoire 'dist') | ||
port: 3000, // Définit le port du serveur de développement | ||
open: true, // Ouvre automatiquement le navigateur lorsque le serveur démarre | ||
hot: true, // Active le hot module replacement (HMR), pour recharger le code sans rafraîchir la page entière | ||
// Optional: configuration proxy pour les API durant le développement | ||
// proxy: { | ||
// '/api': 'http://localhost:3000' | ||
// }, | ||
static: "./dist", | ||
port: 3000, | ||
open: true, | ||
hot: true, | ||
}, | ||
output: { | ||
filename: "bundle.js", // Nom du bundle en développement (généralement simple) | ||
filename: "bundle.js", | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,26 @@ | ||
const { merge } = require("webpack-merge"); // Fusionne les configurations | ||
const common = require("./webpack.common.js"); // Importation de la configuration commune | ||
const TerserPlugin = require("terser-webpack-plugin"); // Plugin pour minifier le JavaScript | ||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); // Plugin pour minifier le CSS | ||
const { merge } = require("webpack-merge"); | ||
const common = require("./webpack.common.js"); | ||
const TerserPlugin = require("terser-webpack-plugin"); | ||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin"); | ||
|
||
module.exports = merge(common, { | ||
mode: "production", // Définit le mode en production, active l'optimisation par défaut (comme la minification) | ||
mode: "production", | ||
output: { | ||
filename: "bundle.[contenthash].js", // Utilisation de contenthash pour le cache-busting (force le navigateur à recharger les fichiers modifiés) | ||
filename: "bundle.[contenthash].js", | ||
}, | ||
optimization: { | ||
minimize: true, // Active la minification pour réduire la taille des fichiers | ||
minimize: true, | ||
minimizer: [ | ||
new TerserPlugin({ | ||
parallel: true, // Minification JavaScript en parallèle pour accélérer le processus | ||
parallel: true, | ||
terserOptions: { | ||
compress: true, // Compression du code pour améliorer les performances | ||
compress: true, | ||
}, | ||
}), | ||
new CssMinimizerPlugin(), // Minification des fichiers CSS | ||
new CssMinimizerPlugin(), | ||
], | ||
splitChunks: { | ||
chunks: "all", // Divise le code en morceaux séparés (vendor, app, etc.) pour une meilleure gestion du cache | ||
chunks: "all", | ||
}, | ||
}, | ||
// Rarely used: CompressionPlugin pour compresser les fichiers en Gzip ou Brotli | ||
// plugins: [ | ||
// new CompressionPlugin({ | ||
// algorithm: 'gzip', | ||
// }), | ||
// ], | ||
}); |