Skip to content

otcmarsbase/frontend-v2

Repository files navigation

Marsbase Desk Web

MarsBase — Web3 Secondaries and OTC platform for SAFT, SAFE & illiquid crypto assets p2p-trading.

Prerequisites

  • Node.js version 18 and yarn installed on your system

Part 1: Setting up your local environment

1. Clone the repo

Clone the repository and navigate to its directory:

git clone https://github.com/otcmarsbase/frontend-v2
cd frontend-v2

2. Install yarn and dependencies

Install yarn and the project dependencies:

npm i -g yarn
yarn

Part 2: Running the project locally

Run the following command in the project directory to start the development server:

yarn start

The 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 storybook

This will automatically open your default browser at http://localhost:6006.

Part 3: Set Environment variables

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

Linting, tests and typechecking

yarn test

Launches the test runner in the interactive watch mode.

yarn build

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!

Deployments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages