当前位置:网站首页>Express framework installation and start service
Express framework installation and start service
2022-06-23 01:30:00 【hacalili】
One 、 install :
First of all to node.js Download... On the official website node
Enter the following command to check whether the installation is successful
npm -vIf the version number is displayed, the installation is successful

npm init --yes
npm i express
Two 、 establish express_test.js file
// introduce
const { request } = require('express');
// Create application objects
const express = require('express');
// Create application objects
const app = express();
// Create routing rules
app.get('/',(request,response) => {
response.send('hello express~');
});
// Listening port starts service
app.listen(8000,() => {
console.log(" Service started ,8000 Port monitoring ...");
})3、 ... and 、cmd Start service in window
node express_test.js

边栏推荐
- three. JS simulated driving tour art exhibition hall - creating super camera controller
- Day367: valid complete square
- Centos7 installing postgresql12
- [hdu] P7079 Pty loves lines
- A blog allows you to understand the use of material design
- Shell logs and printouts
- Day575: divide candy
- Use elk to save syslog, NetFlow logs and audit network interface traffic
- [hdu] p7058 ink on paper finding the maximum edge of the minimum spanning tree
- Learn the specific technical learning experience of designing reusable software from the three levels of class, API and framework
猜你喜欢
![[launch] redis Series 2: data persistence to improve availability](/img/f4/5bc7ca3e17c6656e71df515182842e.png)
[launch] redis Series 2: data persistence to improve availability

New progress in the construction of meituan's Flink based real-time data warehouse platform

SAP ui5 application development tutorial 102 - detailed trial version of print function implementation of SAP ui5 application

Xiaobai operates win10 to expand Disk C (allocate disk D memory to Disk C) and the test is valid for many times
![[initial launch] there are too many requests at once, and the database is in danger](/img/c1/807575e1340b8f8fe54197720ef575.png)
[initial launch] there are too many requests at once, and the database is in danger

Binary String

Autumn move script a

Cadence spb17.4 - Chinese UI settings

SQL programming task04 job - set operation

Debian10 configuring rsyslog+loganalyzer log server
随机推荐
SQL programming task06 assignment - Autumn recruit secret script ABC
[22 summer reconstruction 1] codeworks round 791 (Div. 2)
[ZOJ] P3228 Searching the String
Const defined variables and for of and for in in JS
[cmake command notes]find_ path
Zabbix5 series - use temperature and humidity sensor to monitor the temperature and humidity of the machine room (XX)
A blog allows you to understand the use of material design
Steps to implement a container global component
Centos7 installing postgresql12
Similar to attention NLP
Day367: valid complete square
SAP ui5 application development tutorial 102 - detailed trial version of print function implementation of SAP ui5 application
JS prevent the PC side from copying correct links
three. JS simulated driving tour art exhibition hall - creating super camera controller
Vector 3 (static member)
Voice network multiplayer video recording and synthesis support offline re recording | Nuggets technology solicitation
Is it safe for Hongyuan futures to open an account? Can Hongyuan futures company reduce the handling fee?
E-R图
Vscade personalization: let a cute girl knock the code with you
Explain the startup process of opengauss multithreading architecture in detail