Jim Su b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 éve
..
.husky 18348911c2 Use python3.11 as default (#885) 1 éve
public d5c28a47bc Fix frontend index.html head section (#53) 1 éve
scripts 0534c14279 feat: i18n (#723) 1 éve
src b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 éve
.env 0e572c3e41 feat: support tls. #1234 (#1248) 1 éve
.eslintrc b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 éve
.gitignore 0534c14279 feat: i18n (#723) 1 éve
.npmrc 0534c14279 feat: i18n (#723) 1 éve
.prettierrc.json 38628c106f Add formatting and linting for typescript components (#32) 1 éve
README.md f55f7be2e6 update readme to include testing script and documentation (#1272) 1 éve
index.html d5c28a47bc Fix frontend index.html head section (#53) 1 éve
package-lock.json b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 éve
package.json b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 éve
postcss.config.js 658b860d04 feat: support tailwind and daisyUI (#266) 1 éve
tailwind.config.js 7e825b571f fix(): build out opendevin modal component (#1141) 1 éve
test-utils.tsx 426f387123 setup env for controlled integration tests with redux (#1180) 1 éve
tsconfig.json b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 éve
vite-env.d.ts cac687508f cra -> vite (#47) 1 éve
vite.config.ts b0c3bca915 refactor(frontend): Refactor imports to use absolute path (#1288) 1 éve
vitest.setup.ts 426f387123 setup env for controlled integration tests with redux (#1180) 1 éve

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 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.