我正试着从Fly.io开始。我很了解Vue,想试试Nuxt和Node.js。我似乎不知道如何添加服务器端组件和类来处理AJAX请求。
我遵循了官方教程https://fly.io/docs/languages-and-frameworks/nuxtjs/
npm init nuxt-app@latest spec-land
create-nuxt-app v5.0.0
✨ Generating Nuxt.js project in spec-land
? Project name: spec-land
? Programming language: JavaScript
? Package manager: Npm
? UI framework: Element
? Template engine: HTML
? Nuxt.js modules: Axios - Promise based HTTP client
? Linting tools: (Press <space> to select, <a> to toggle all, <i> to invert selection)
? Testing framework: None
? Rendering mode: Single Page App
? Deployment target: Server (Node.js hosting)
? Development tools: jsconfig.json (Recommended for VS Code if you're not using typescript)
? What is your GitHub username? --
? Version control system: Git
Successfully created project spec-land
$ touch pages/index.js
$ npm run dev在添加了一些前端代码之后,这个生成的项目是否能够在相同的JavaScript部署中在服务器上运行fly.io?
发布于 2022-11-29 02:09:20
https://stackoverflow.com/questions/74607026
复制相似问题