The CTDC UI is the front-end repository of NCI's Clinical and Translational Data Commons (CTDC) project, built on FNLCR's Bento Framework. It is a React application utilizing JavaScript, CSS, MUI, Babel, Jest, and Apollo Client, among other dependencies.
Prerequisites:
- Node.js 20.x (LTS) — run
nvm useto switch to the version in.nvmrc, ornvm use 20if you need to set it manually - npm 10.x
To run the CTDC UI project locally, follow these steps:
- Clone the repository:
git clone https://github.com/CBIIT/crdc-ctdc-ui.git cd crdc-ctdc-ui - Install dependencies:
If
nvm use npm install --legacy-peer-deps
nvm usedoes not select Node 20.x, runnvm use 20first. - Start the development server:
npm start
- Open your browser and visit http://localhost:3000 to access the application.
To update backend or other service API, edit the configuration in public/injectEnv.js.
npm start– Run the app in development mode at http://localhost:3000npm test– Run tests in watch mode (Jest & React Testing Library)npm run build– Build the app for production to thebuildfolder