Run, build & deploy
I deploy it on a $5 Vultr instance, so there's no special hardware and dependencies requirement here, except Node.js (and NPM).
Install dependencies
Clone or download from Github
git clone https://github.com/ducbao414/win32.run.git
cd win32.run-main
Then install dependencies
npm install
Run
npm run dev
The dev server is at http://localhost:3000
Build
npm run build
The build output location is win32.run/build
To preview the build
npm run preview
Depoy
I shamelessly share my deployment process.
Follow this guide to set up a Ubuntu server with NGINX. I chose Vultr cause theirs is cheaper than DigitalOcean ($5 vs $6).
Then, put the build folder, package.json, package-lock.json to the server, cd
then npm install
Finally, pm2 start build/index.js
to start win32 at localhost:3000
Last updated