[
{"code": "AFG", "pays": "Afghanistan"},
{"code": "ALB", "pays": "Albanie"},
{"code": "DZA", "pays": "Algérie"},
{"code": "AND", "pays": "Andorre"},
{"code": "AGO", "pays": "Angola"},
{"code": "ATG", "pays": "Antigua-et-Barbuda"},
{"code": "ARG", "pays": "Argentine"},
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
Please enter a MongoDB connection string (Default: mongodb://localhost/): | |
Current Mongosh Log ID: 6639e4bc72218249cf12686a | |
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.8.1 | |
Using MongoDB: 7.0.9 | |
Using Mongosh: 1.8.1 | |
hospital> db.patients.insertMany([ { "name": "kouame", "age": 27, "history": [{ disease: "cold" }] }, { "name": "yao", "age": 24, "history": [{ disease: "headach" }] }, { "name": "jean", "age": 45, "history": [{ disease: "cold" }] }]) | |
{ |
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> |
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: |
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
function Unite(nombre) { | |
var unite; | |
switch (nombre) { | |
case 0: | |
unite = 'zéro'; | |
break; | |
case 1: | |
unite = 'un'; | |
break; | |
case 2: |
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
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', | |
}, |