DEV3 Technologies home

DEV3 Developer Forum

How do I install CryptoAI Pro step by step?

Product questionsSolved0 views

1 reply

dev3 · Accepted answer

Install the web app

  1. Download the ZIP from your DEV3 account and unzip it. Open Documentation/index.html in a browser for the full guide.

  2. Install the dependencies (.npmrc already sets legacy-peer-deps):

    npm install
  3. Copy the environment template and fill in the required values:

    cp .env.example .env.local

    Set MONGODB_URI and MONGODB_DB, then generate random values for AUTH_SECRET, FIELD_ENCRYPTION_KEY, CRON_SECRET and REALTIME_SECRET. Every other key is optional and explained in the file: the AI key and model, FINNHUB_API_KEY for stock streaming and news, Google sign-in, VAPID keys for web push, Mailgun or SMTP for email, reCAPTCHA, and the APNs keys for iOS push.

  4. Seed demo data (optional). It only writes into a database it created, and calls no paid API:

    npm run seed
  5. Start the three processes together (web app, realtime sidecar and worker):

    npm run dev:all

    Open the address the web process prints and sign in with one of the seeded demo accounts.

Production

  • Server (recommended): npm ci, npm run build, npm run db:indexes, then run the web app, the realtime sidecar and the worker under PM2 with the included ecosystem.config.js, behind a TLS reverse proxy that forwards /socket.io/ to the sidecar. The deployment guide in Documentation/ covers nginx, scaling and backups.
  • Serverless: the web app also runs on Vercel without the sidecar and worker. Schedule /api/cron/tick with Authorization: Bearer <CRON_SECRET>; clients then poll instead of streaming, and sub-second alerts need the worker.
  • Create your first Super Admin with npm run rbac:bootstrap -- --super-admin=<your email>.
  • npm run verify runs the typecheck, lint, import-boundary checks and the test suite against a test database.

Build the iOS app

  1. Deploy the web app first: the iOS app has no backend of its own and talks to the included /api/mobile layer.
  2. Open iOS-App/Config.xcconfig and set the app name, bundle id, Apple Team ID, brand gradient, URL scheme, Universal Links domain and the server URL for each build type.
  3. Run iOS-App/scripts/make-icons.sh (needs brew install librsvg) to redraw the icon from your brand colours.
  4. In iOS-App/, run xcodegen generate, open CryptoAiPro.xcodeproj, enable the App Group and Push Notifications capabilities and build.
  5. On the server, set NEXT_PUBLIC_REALTIME_URL for live streaming, and APPLE_TEAM_ID, APNS_KEY_ID, APNS_PRIVATE_KEY and IOS_BUNDLE_ID for push.
0

Your reply

Every post is reviewed by DEV3 before it appears. Usually reviewed within 24 hours.

Markdown supported. Use ``` for code blocks. Images are not allowed.