建立 Movie List 專案,設定 Node.js、Express、Vue
使用前後分離
mkdir movie_list
cd movie_list
npm init -y
npm install -D express nodemon
touch app.js
const express = require('express')
const const app = express()
const port = 8081
app.get('/', (req, res) => {
res.send('This is the movie list built with express.')
})
app.listen(port)
console.log(`The server is running on localhost:${port}`)
nodemon app.js