octo-woapi / anode-api-hapi

Home Page:https://octo-woapi.github.io/anode-api-hapi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anode-api-hapi

installation

cloner le dépôt

git clone https://github.com/octo-woapi/anode-api-hapi.git
# puis acceder au dossier
cd anode-api-hapi

installer les dépendances

npm install

lancer le serveur

npm start

par défaut, le serveur écoute sur la socket http://localhost:3000

configuration

Le port et le host peuvent être modifiés si besoin.

pour cela, créé un fichier .env à la racine du projet.

touch .env

Dans le fichier d'environnement, définir HOST et PORT pour paraméter le serveur hôte et le port découte:

HOST=127.0.0.1
PORT=3030

enfin redémarrer le serveur

npm restart

About

https://octo-woapi.github.io/anode-api-hapi/


Languages

Language:JavaScript 100.0%