This README provides instructions on how to set up and run the ameba-OTA-UI. Currently it works for Ubuntu 22.04, Arduino SDK.
-
Clone this repository
git clone https://github.com/Ameba-AIoT/ameba-OTA-UI.git
-
Install curl (if you haven't) and nvm
sudo apt install curl curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
-
Export nvm path
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"
-
Install a specific Node.js version (e.g., v18.20.3) and a specific npm version (during time of development, node: 18.20.3, npm:10.8.1. This may work for other versions of node and npm) :
nvm install v18.20.3 npm install [email protected] -g
-
Check the installed Node.js and npm versions:
node -v npm -v
cd ameba-OTA-UI/
npm i
- To create a production build and run the server:
npm run build npm start