show dbs
This file contains hidden or 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
// ========================= | |
// -=-=-=-=-=-=-= DEVOIR A RENDRE LE 16/01/2024 AVANT 23h59 min -=-=-=-=-=-=-=-=-=-=- | |
// ========================= | |
// NB: Pour tous les exercices, prière des les placer dans un fichier (.js) séparé puis l 'importer dans le fichier (.html) | |
// EXERCICE 1 - LES BOUCLES (5 points) | |
/** |
This file contains hidden or 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
const { PrismaClient } = require('@prisma/client'); | |
const { writeFileSync } = require('fs'); | |
async function generatePrismaModels() { | |
// Connect to the database using the Prisma client | |
const prisma = new PrismaClient({ | |
datasources: { | |
db: { | |
url: 'sqlserver://localhost:1433;database=mydb;user=sa;password=mypswd;trustServerCertificate=true', | |
}, |
Voici un projet pour tester vos compétencesven Node.js et Express
Créer une application avec Node.js, Express.js et une base de données de votre choix. Cette base devra contenir deux tables(user, contact). Un user peut avoir un ou plusieurs contact. Un contact appartient à un et un seul user.
A Faire:
- Faites un CRUD(Create, Read, Update, Delete) sur des deux tables
This file contains hidden or 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
function Unite(nombre) { | |
var unite; | |
switch (nombre) { | |
case 0: | |
unite = 'zéro'; | |
break; | |
case 1: | |
unite = 'un'; | |
break; | |
case 2: |
L'ONU en collaboration avec la CDCI souhaite offrir au monde entier un outil permettant de voir tous les pays et quelques informations detaillées de ceux-ci.
Etant le prestataire, la CDCI solicite son service Informatique, service compétente pour la resolution des problèmes compliqués
En utilisant utiliser HTML, CSS & JS, aidez la CDCI et l'ONU,
Les utilisateurs doivent pouvoir:
- Voir tous les pays du monde sur la page d'accueil
- Rechercher un pays à l'aide d'un champ de saisie
This file contains hidden or 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
/** | |
* @swagger | |
* /auth/login: | |
* post: | |
* summary: Authentification de l'utilisateur | |
* description: Authentifie l'utilisateur avec les informations de connexion fournies. | |
* requestBody: | |
* required: true | |
* content: | |
* application/json: |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Foodio</title> | |
<link rel="stylesheet" href="style.css"> | |
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap" rel="stylesheet"> | |
</head> | |
<body> |
OlderNewer