* allow arrow functions for components * initial commit - BaseModal * initial commit - SettingsForm * extend tests and component * extend to support language * refactor tests * move files and separate component/tests * extend functionality * refactor * major refactor and flip flops * add tests * fix styles and names * add loading state * remove old SettingModal * refactor component into smaller ones * fix model input * revert eslint rule to allow multiple function definitions for components and remove unused helper function * add new i18n key for language placeholder --------- Co-authored-by: Robert Brennan <accounts@rbren.io>
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 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.