29 lines
458 B
Markdown
29 lines
458 B
Markdown
# Mini Serveur Express
|
|
|
|
Un mini serveur Express avec une route `/api/ping` qui renvoie "Hello World".
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Démarrage du serveur
|
|
|
|
```bash
|
|
npm start
|
|
```
|
|
|
|
Ou en mode développement avec rechargement automatique :
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
## Utilisation
|
|
|
|
Une fois le serveur démarré, la route ping est accessible à :
|
|
- http://localhost:3000/api/ping
|
|
|
|
Cette route renvoie un objet JSON avec le message "Hello World".
|