This project provides automated browser interaction capabilities using Playwright and React. It consists of a React frontend and an Express.js backend server that controls browser automation tasks.
Key features:
- Browser automation using Playwright
- React-based frontend interface
- Express.js backend server
- Headless Chrome browser control
- File upload handling
- Cross-origin resource sharing (CORS) support
- Uses llama3.2-vision with ollama
- Node.js and npm installed
- A modern web browser (Chrome recommended)
- Playwright browser dependencies
- Ollama with llama3.2-vision
- Clone the repository:
git clone https://github.com/yourusername/browser-automation.git
cd browser-automation
- Install dependencies:
# Install frontend dependencies
npm install
# Install server dependencies
cd server
npm install
Runs the React app in development mode.
Open http://localhost:3000 to view it in the browser.
Starts the Express.js server on port 3001.
The server handles browser automation tasks and provides API endpoints for the frontend.
Builds the React app for production to the build
folder.
- Start the backend server:
cd server
node server.js
- In a separate terminal, start the frontend:
npm start
- The application will open in your default browser at http://localhost:3000
- Frontend: React application (port 3000)
- Backend: Express.js server (port 3001)
- Browser Automation: Playwright with Chrome