This project blends Web3 and Web2 technologies to enhance a Webflow application with new blockchain capabilities. By integrating Web3 features and retaining classic Web2 functionalities like data fetching and external API communication.
To test a new feature mode, you need to:
-
Create a new HTML file in the root directory. For example:
new-feature.html -
Manually add a new script in the
package.json:Open
package.jsonand add a new entry underscripts:"dev:new-feature": "vite --mode new-feature --port 3000"
-
Run the command for the new feature:
pnpm run dev:new-feature
-
URL for the new feature:
http://localhost:3000/new-feature
Each feature requires a specific command and URL. When you run a command, the browser will automatically open with the correct URL.
To start the app in sales mode, run:
pnpm run dev:sales- URL for Sales Mode: http://localhost:3000/sales
To start the app in partner-dashboard mode, run:
pnpm run dev:partner-dashboard- URL for Partner Dashboard Mode: http://localhost:3000/partner-dashboard
Note: Both modes use the same port (
3000). Make sure only one instance is running at a time to avoid conflicts.
- Stop any running instance by closing the terminal or stopping the process.
- Run the appropriate command for the feature you want to test (see the commands above).
- The browser will automatically open the correct URL for the selected feature.
To run the tests, use the following command:
pnpm run testThis will execute the entire test suite and display the results.