Create Neodax Web App
Create Neodax Web apps with no build configuration, based on Next.js.
Create Neodax Web App works on macOS, Windows, and Linux.
You'll need to have Node 16.0.0 or a later version on your local development machine (but it's not required on the server). We recommend using the latest LTS version. You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.
Creating an App
Using npx
Run the following command in your terminal:
npx @openware/create-neodax-web-app
(npx is a package runner tool that comes with npm 8.1+ and higher)
When prompted, enter the name for your project (e.g., my-app
).
This command will create a directory called my-app
inside the current folder. Inside that directory, it will generate the initial project structure and install the dependencies.
Once the installation is complete, navigate to your project folder:
cd my-app
Inside the newly created project, you can run some built-in commands:
npm run dev
This command runs the app in development mode. Open http://localhost:3000 to view it in the browser.
Environment Variables
Here are the environment variables you need to configure for your Neodax Web App. The current values are for testing only, and sensitive information should be set via secrets in your deployment environment.
NEXT_PUBLIC_CLEARPORT_SOCKET_URL=change_me
NEXT_PUBLIC_PROJECT_ID="change_me"
NEXT_PUBLIC_SUPPORTED_CHAINS="59144,59140,137"
NEXT_PUBLIC_API_BASE_URL=change_me
NEXT_PUBLIC_SAFETY_CURRENCY=change_me
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID='change_me'
NEXT_PUBLIC_POSTHOG_KEY='change_me'
NEXT_PUBLIC_POSTHOG_HOST='change_me'
NEXT_PUBLIC_NODE_ENV='development'
NEXT_PUBLIC_GIT_COMMIT_SHA="0.0.0"
NEXT_PUBLIC_PRIVY_APP_ID="change_me"
NEXT_PUBLIC_PIMLICO_API_KEY="change_me"
NEXT_PUBLIC_SITE_MODE="broker"
NEXT_PUBLIC_BROKER_URL='change_me'
NEXT_PUBLIC_PEERS_PATH=59140
NEXT_PUBLIC_TOTAL_CHANNELS=450
Ensure to replace "changeme"
with actual values in your deployment environment.