LogoLogo
GithubAPIsJoin Research & DevelopmentWebsite
  • Openmesh
    • Openmesh Overview
    • Litepaper
      • Litepaper Link
      • Decentralisation Compromised
      • The Openmesh Solution
      • Principals & Governance
      • Openmesh's 10 Commandments
      • Core Innovation & Breakthroughs
      • Openmesh's Journey
      • Importance of Defining Web3
      • Investor Roadmap
      • Go To Market Milestones
      • OPEN Tokenomics
      • Governance & Transparency
      • Openmesh DAO
    • Openmesh Expansion Program
      • How to whitelist
      • How to perform asset transfer
      • Openmesh Expansion Program (OEP)
    • Project FAQs
    • Important Links
    • Getting Started Guides
    • App Templates
    • Use Cases
    • Advanced Templates
  • Products
    • Xnode
      • Xnode DVM
      • Xnode Studio
      • Link to Xnode Studio
      • XnodeOS
      • Basic Getting Started Guides
        • Buying your DVM from Opensea
        • Connecting your Web3 Wallet & Creating a Login Session
        • Redeeming Your DVM
        • Select Template via App Store
        • Deploy to DVM or Bare Metal
        • Monitoring Your Deployments
      • Template Deployment Guides
        • Deploy a Chainlink Data Dashboard
        • Deploying a Minecraft Server
      • Use-Case Deployment Guides
        • Deploying Ollama + Open WebUI App
      • Advanced Deployment Guides
        • Xnode NextJS Base Template
    • Xnode One
    • Openmesh Cloud
      • Openmesh Core
        • Openmesh Core - Github
      • Decentralized Service Mesh Protocol (DSMP)
      • Openmesh API
      • Pythia
    • Integrations
      • Chainlink CCIP
  • Open Source Initiatives
    • Contributions
    • OpenR&D
      • Open R&D Link
      • Vision
      • Problem Statement & Innovation
      • Task progression
      • Supported Chains
      • Glossary
      • Contact Us
      • Verified Contributors
        • OVC DAO
        • Departments
          • Dispute Department
          • Expert Department
      • Getting Started
        • Creating Tasks
          • Create a Task
            • Connect Wallet
          • Accept an application
          • Review a submission
          • Additional management
        • Perform Tasks
          • Apply to task
            • Edit Profile
          • Take a task
          • Create a submission
          • Dispute Resolution
      • FAQs
      • OpenR&D Smart Contracts
        • Tasks
        • Escrow
        • Task Drafts
Powered by GitBook
On this page
  • The Xnode NextJS Base Template
  • Base Template Modification Steps
  • One click deployment
  • Commands (in root folder)
  • Commands (in nextjs-app)
  • Deployment Tips
  • Openmesh Developer Community Forks
  1. Products
  2. Xnode
  3. Advanced Deployment Guides

Xnode NextJS Base Template

Last updated 6 months ago

In order to show how easy it is to leverage Xnode Studio, XnodeOS (forked NixOS) and bare metal server providers, we are working with the open source developer community to host hackathons where devs can submit their new app templates and get rewarded! Check out our where you can complete development tasks to earn bounties! These tasks are created, reviewed and funds escrowed in alignment to our Openmesh hackathon initiatives! The first one was completed during the Openmesh Speedhack hackathon at the Chainlink SmartCon HK 2024 event.

The Xnode NextJS Base Template

The NextJS base template is the foundational code needed to deploy your NextJS application locally and then onto Openmesh bare metal servers.

This template is provided so you can make your NextJS app Xnode/Nix compatible.

Base Template Modification Steps

  1. Replace all instances of "xnode-nextjs-template" with the name of your project. This should be unique, as no apps with the same name can be run on a single Xnode.

  2. Build your NextJS app

  3. Paste your GitHub url and enter the name of the project you choose during step 1.

  4. Hit deploy and wait for your app to be ready.

  5. Copy the deploy link and replace the one click deployment url in the next section. (to allow others to easily deploy your application)

One click deployment

Commands (in root folder)

nix run

Commands (in nextjs-app)

npm i
npm run dev
npm run build
npm run start

Deployment Tips

We are updating XnodeOS to use the latest NixOS features like Flakes. Therefore, if you have any errors that are Flake related please try the following nix run commands:

nix run --extra-experimental-features "nix-command flakes"

You can also update the ~/.config/nix/nix.conf file with the following to make it flakes permanent, so that the simple "nix run" will execute successfully:

experimental-features = nix-command flakes

Openmesh Developer Community Forks

In case your npm dependencies change, run nix run in the root folder and replace the npmDepsHash in with the got hash in the error.

Once your app is ready for deployment and runs using nix run, push to GitHub and copy your GitHub url (e.g. ).

Go the the App Store in and go to the advanced tab.

You can find the one click (cannot embed the link within Gitbook). When you click it it will quickly deploy this NextJS Base Template to Xnode after you connect your wallet to Xnode Studio.

During our Openmesh developer community hackathons, we have already had submissions for other NextJS base template that you can deploy on top of Openmesh. All community submissions are external to Openmesh (not on the official repo or supported). Please conduct your own due diligence on the code modifications from the base template.

by

by

by

package.nix
https://github.com/Openmesh-Network/xnode-nextjs-template
Xnode Studio
deploy button at the Github repository readme page
Forks
Xnode NextJS Blog Template
johnforfar
Xnode NextJS Linktree Template
Arturou
Xnode NextJS Notion Template
elbarroca
open source bounty platform called Open R&D
Xnode NextJS Base Template - Github Repo