Tusk DApp is a decentralized application that can be deployed on decentralized platforms like Walrus, as well as traditional hosting services like Vercel. This repository contains the source code and configuration for building and deploying the Tusk DApp.
To install the dependencies, run the following command:
npm install
To start the development server, use the following command:
npm run dev
To build the application for deployment on Walrus, use the following command:
npm run build:walrus
This will generate a dist
folder containing the static assets needed for Walrus deployment.
To build the application for deployment on traditional platforms (e.g., Vercel, Netlify), use the following command:
npm run build
This will generate a dist
folder containing the static assets needed for traditional deployment.
Walrus is a decentralized platform that allows you to deploy static websites and decentralized applications.
-
Build the Application: Run the following command to generate the build for Walrus:
npm run build:walrus
-
Deploy to Walrus: Move the contents of the
dist
folder to the specifiedPATH_TO_BUILD_FOLDER
for Walrus deployment. Then, use thesite-builder
command to publish the application:./target/release/site-builder --config site-builder/assets/builder-example.yaml publish {PATH_TO_BUILD_FOLDER}
The deployed Tusk DApp will be accessible at a Walrus-generated URL. For an example deployment, visit https://4b90hd5a1rmgzt5bkgq0bcsi2x9rq3u6gmi8ek6vm240spjogd.walrus.site/.
For detailed deployment instructions, refer to the Walrus documentation.
You can also deploy to traditional method such as https://tusk-dapp.vercel.app/
This project is licensed under the MIT License. See the LICENSE file for details.