Skip to content

dustinwloring1988/browser-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Browser Automation Project

cover

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.

Project Overview

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

Prerequisites

  • Node.js and npm installed
  • A modern web browser (Chrome recommended)
  • Playwright browser dependencies
  • Ollama with llama3.2-vision

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/browser-automation.git
cd browser-automation
  1. Install dependencies:
# Install frontend dependencies
npm install

# Install server dependencies
cd server
npm install

Available Scripts

Frontend

npm start

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

Backend

node server.js (from server directory)

Starts the Express.js server on port 3001.
The server handles browser automation tasks and provides API endpoints for the frontend.

Production

npm run build

Builds the React app for production to the build folder.

Usage

  1. Start the backend server:
cd server
node server.js
  1. In a separate terminal, start the frontend:
npm start
  1. The application will open in your default browser at http://localhost:3000

Architecture

  • Frontend: React application (port 3000)
  • Backend: Express.js server (port 3001)
  • Browser Automation: Playwright with Chrome

Learn More

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published