当前位置:网站首页>Nodejs tutorial expressjs article quick start
Nodejs tutorial expressjs article quick start
2022-07-06 21:09:00 【Knowledge fatness】
What is? Expressjs
Express It is used on the server side Web Application's Node.js frame .Express be based on Node.js Function building , It can provide simple and fast Web And mobile server solutions . It is an open source framework , from Node.js Community maintenance . stay Express Many other libraries have been built on , Many large technology companies are using Express.
Project environment construction
Suppose you have installed Node.js, Create a directory to save your application , And set it as your working directory .
mkdir myapp
cd myapp
Use this npm init Command to create a package.json file . About how package.json Working
npm init
Now install in the directory Express And save it in the dependency list . for example :
npm install express
Project source code
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
Project operation
Run the application with the following command :
node index.js
边栏推荐
- Swagger UI教程 API 文档神器
- 【Redis设计与实现】第一部分 :Redis数据结构和对象 总结
- 字符串的使用方法之startwith()-以XX开头、endsWith()-以XX结尾、trim()-删除两端空格
- [asp.net core] set the format of Web API response data -- formatfilter feature
- Can novices speculate in stocks for 200 yuan? Is the securities account given by qiniu safe?
- 防火墙基础之外网服务器区部署和双机热备
- R language visualizes the relationship between more than two classification (category) variables, uses mosaic function in VCD package to create mosaic plots, and visualizes the relationship between tw
- 3D人脸重建:从基础知识到识别/重建方法!
- No Yum source to install SPuG monitoring
- Yyds dry goods count re comb this of arrow function
猜你喜欢

The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
![[MySQL] trigger](/img/b5/6df17eb254bbdb0aba422d08f13046.png)
[MySQL] trigger

Intel 48 core new Xeon run point exposure: unexpected results against AMD zen3 in 3D cache

use. Net analysis Net talent challenge participation

The mail command is used in combination with the pipeline command statement

Performance test process and plan

MLP (multilayer perceptron neural network) is a multilayer fully connected neural network model.

【深度学习】PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

OAI 5G NR+USRP B210安装搭建

OAI 5g nr+usrp b210 installation and construction
随机推荐
Aiko ai Frontier promotion (7.6)
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
3D人脸重建:从基础知识到识别/重建方法!
Minimum cut edge set of undirected graph
自定义限流注解
Yyds dry goods count re comb this of arrow function
Notes - detailed steps of training, testing and verification of yolo-v4-tiny source code
Infrared thermometer based on STM32 single chip microcomputer (with face detection)
What key progress has been made in deep learning in 2021?
use. Net analysis Net talent challenge participation
全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
Variable star --- article module (1)
快过年了,心也懒了
C language games - minesweeping
Activiti global process monitors activitieventlistener to monitor different types of events, which is very convenient without configuring task monitoring in acitivit
OAI 5G NR+USRP B210安装搭建
Taylor series fast Fourier transform (FFT)
New database, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, Feishu multidimensional table, heipayun, Zhixin information, YuQue
[MySQL] trigger
【滑动窗口】第九届蓝桥杯省赛B组:日志统计