MarsBase — Web3 Secondaries and OTC platform for SAFT, SAFE & illiquid crypto assets p2p-trading.
- Node.js version 18 and
yarninstalled on your system
Clone the repository and navigate to its directory:
git clone https://github.com/otcmarsbase/frontend-v2
cd frontend-v2Install yarn and the project dependencies:
npm i -g yarn
yarnRun the following command in the project directory to start the development server:
yarn startThe development server will be running at http://localhost:3000 (or the port number displayed in the terminal) and will automatically open your default browser with the app.
To view UI component stories, run the following command:
yarn storybookThis will automatically open your default browser at http://localhost:6006.
Set environment variables via .env.
| Variable name | Requirement | Description | Default Value |
|---|---|---|---|
REACT_APP_BACKEND_API_GATEWAY_URL |
Required | The URL of the RPC backend endpoint. | https://dev-api.otcmarsbase.io/rpc/ |
GENERATE_SOURCEMAP |
Optional | When set to false, source maps are not generated for a production build. This solves out of memory (OOM) issues on some smaller machines. |
true |
REACT_APP_DEBUG_MODE |
Optional | When set to true, the application runs in debug mode. |
false |
Launches the test runner in the interactive watch mode.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
