Next, we’re going to set up a NuxtJS app for you to deploy to Section’s Edge App Hosting.
First, let’s make sure that your local development workspace is ready.
If you are on Windows, we recommend downloading Git for Windows and use Git Bash that comes with it, which supports the UNIX-specific commands in this tutorial.
To set up a demo app, open your terminal,
cd into the directory you’d like to create the app in, and run the following command:
git clone https://github.com/section/nodejs-example
You now have a new directory called
cd into it:
Pull down the dependencies and build your app by running:
npm install npm run-script build
The Section platform expects you have run both of these commands before you can deploy your app.
You must use
yarn is unsupported for now.
Then, run the following command:
npm run-script start
This starts your app’s development server on port 8080.
Let’s check to see if it’s working. Open http://localhost:8080 from your browser.
Next: deploy your Node.js app.
Node.js Edge App Hosting is a new Section product, so it may have some rough edges. If you see something that needs improvement, we’d love to hear your feedback.