This section describes how to develop NextJS using Wazaterm.
What you need
Start Wazaterm with referring to this article.
Install node by using nvm.
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash $ vi ~/.bashrc # add below export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm $ nvm install node $ nvm use node $ node -version
$ npx create-next-app@latest npx: installed 1 in 1.93s ✔ What is your project named? ... my-app Creating a new Next.js app in /tmp/my-app. ..
$ cd my-app $ yarn dev
Port 3000 will be used, so if you want to change the port used, change package.json.
"scripts": { "dev": "next dev --port 8000",
$ autossh -M 50100 -NT -o "ServerAliveInterval 60" -o TCPKeepAlive=yes -o "ServerAliveCountMax 120 -L 8000:localhost:8000 username@hostname.wazaterm.com &
Put localhost:8000 in your browser and you will see the first page. From here, you can use the CLI editor or Code Server (VS Code) to develop.