from github to this gitea
This commit is contained in:
37
express JS.md
Normal file
37
express JS.md
Normal file
@@ -0,0 +1,37 @@
|
||||
up:: [[Node JS]]
|
||||
#informatique/javascript
|
||||
|
||||
> [!smallquery]+ Sous-notes de `$= dv.el("span", "[[" + dv.current().file.name + "]]")`
|
||||
> ```breadcrumbs
|
||||
> title: false
|
||||
> type: tree
|
||||
> dir: down
|
||||
> ```
|
||||
# Installation
|
||||
|
||||
```sh
|
||||
npm init # initalisation d'un nouveau projet
|
||||
npm install express -save # ajout du packet express JS
|
||||
```
|
||||
|
||||
Dans `package.json` ajouter :
|
||||
```sh
|
||||
"start": "node ./src/fichiersource.js"
|
||||
```
|
||||
|
||||
```sh
|
||||
npm start
|
||||
```
|
||||
|
||||
# Arborescence
|
||||
|
||||
- index.js
|
||||
- node_modules
|
||||
- package-lock.json
|
||||
- package.json (référence des )
|
||||
- public
|
||||
- src
|
||||
- controllers
|
||||
- models
|
||||
- routes
|
||||
- README.md
|
Reference in New Issue
Block a user