Skip to content

Instantly share code, notes, and snippets.

@Davidegloh
Last active May 27, 2021 14:57
Show Gist options
  • Save Davidegloh/9e63f2c176a09ce9cce2ea1b7ad19218 to your computer and use it in GitHub Desktop.
Save Davidegloh/9e63f2c176a09ce9cce2ea1b7ad19218 to your computer and use it in GitHub Desktop.
[Initialisation Projet Back] #Initialisation

Initialiser NPM Tapper npm init -y dans la console. L’initialisation créera un package.json

Installation dépendences npm i express ejs dotenv

Créer fichier .env PG_URL=postgres://user:password@localhost/bdd PORT=3000

Ajoutter raccourci nodemon start dans le "script" du fichier package.json "start": "nodemon app/index.js"

Installer nodemon npm i --save-dev nodemon

Lancer serveur dans le terminal npm start

Regarder video https://drive.google.com/drive/u/1/folders/1nIRR9Gx7zHRy_28b1HTTPY8poNy6gUcV

Supprimer tous les ports : killall node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment