Installation
Prerequisites
- Node.js 20+ (engine requirement: >=17.0.0)
- npm (included with Node.js)
- IOTA CLI (installed automatically by the build script, or manually via
brew install iotaledger/tap/iota)
Clone and Install
git clone https://github.com/deduzzo/iotapolis.gitcd iotapolisnpm installInstall frontend dependencies:
cd frontendnpm installcd ..Smart Contract
Build the Move smart contract:
npm run move:buildThis command will automatically install the IOTA CLI (if missing), fetch the IOTA Move framework, and compile the contract in move/forum/.
Build and deploy to testnet:
npm run move:deployRun the Application
Development Mode
Starts the Sails.js backend and the Vite dev server concurrently (backend on port 1337, frontend on port 5173):
npm run devProduction Mode
Build the frontend first, then start the server on a single port (1337):
npm run buildnpm startDesktop Builds (Electron)
Development mode:
npm run desktop:devBuild for the current platform:
npm run desktop:buildPlatform-specific builds:
npm run desktop:build:win # Windows .exenpm run desktop:build:mac # macOS .dmgnpm run desktop:build:linux # Linux .AppImageRelease
Create a new versioned release (interactive script that bumps version, builds, tags, and creates a GitHub Release):
npm run release