tobitege b0478d2880 fix: Fix husky install deprecated message (since v9 of husky) (#2190) (#2191) 1 год назад
..
.husky 6013faeec5 Add frontend tests to pre-commit and Makefile. (#1549) 1 год назад
public d5c28a47bc Fix frontend index.html head section (#53) 1 год назад
scripts e32d95cb1a lint: simplify hooks already covered by Ruff (#1204) 1 год назад
src ed6dcc8381 fix typos (#2187) 1 год назад
.env e32d95cb1a lint: simplify hooks already covered by Ruff (#1204) 1 год назад
.eslintrc 13d04fa36c Fix issue #2029: Replace defaultProps with JavaScript default parameters (#2106) 1 год назад
.gitignore 0534c14279 feat: i18n (#723) 1 год назад
.npmrc 0534c14279 feat: i18n (#723) 1 год назад
.prettierrc.json e32d95cb1a lint: simplify hooks already covered by Ruff (#1204) 1 год назад
README.md a0dd5880d7 improve formatting and extend to include i18n scripts (#1328) 1 год назад
index.html d5c28a47bc Fix frontend index.html head section (#53) 1 год назад
package-lock.json a7b19a0048 Bump @nextui-org/react from 2.4.0 to 2.4.1 in /frontend (#2161) 1 год назад
package.json b0478d2880 fix: Fix husky install deprecated message (since v9 of husky) (#2190) (#2191) 1 год назад
postcss.config.js 658b860d04 feat: support tailwind and daisyUI (#266) 1 год назад
tailwind.config.js 93d8ee1400 Render messages in markdown (#1391) 1 год назад
test-utils.tsx 426f387123 setup env for controlled integration tests with redux (#1180) 1 год назад
tsconfig.json b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 год назад
vite-env.d.ts cac687508f cra -> vite (#47) 1 год назад
vite.config.ts b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 год назад
vitest.setup.ts 88ef414e3a fix warnings during test runs (#1638) 1 год назад

README.md

Getting Started with the OpenDevin Frontend

Available Scripts

In the project directory, you can run:

npm run start -- --port 3001

Runs the app in the development mode.\ Open http://localhost:3001 to view it in the browser.

The page will reload if you make edits.\ You will also see any lint errors in the console.

npm run make-i18n

This command is used to generate the i18n declaration file.\ It should be run when first setting up the repository or when updating translations.

npm run test

This command runs the available test suites for the application.\ It launches the test runner in the interactive watch mode, allowing you to see the results of your tests in real time.

npm run build

Builds the app for production to the dist 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!

Environment Variables

You can set the environment variables in frontend/.env to configure the frontend. The following variables are available:

VITE_BACKEND_HOST="127.0.0.1:3000" // The host of the backend
VITE_USE_TLS="false"               // Whether to use TLS for the backend(includes HTTPS and WSS)
VITE_INSECURE_SKIP_VERIFY="false"  // Whether to skip verifying the backend's certificate. Only takes effect if `VITE_USE_TLS` is true. Don't use this in production!
VITE_FRONTEND_PORT="3001"          // The port of the frontend

You can also set the environment variables from outside the project, like exporter VITE_BACKEND_HOST="127.0.0.1:3000".

The outside environment variables will override the ones in the .env file.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

For more information on tests, you can refer to the official documentation of Vitest and React Testing Library.