Skip to content

This is the browser I made to provide a safe and simple way for elederly people to navigate the web also all coded in rust

Notifications You must be signed in to change notification settings

wbaranano/Simple_Surf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title: Simple Surf

Overview

This project is a simple web application that indexes content from various websites. It sets up a TCP server using Rust, which listens for incoming requests and serves static files or JSON data based on the request type.

Project Structure

engine
├── src
│   └── main.rs          # Main logic of the application
├── static
│   ├── index.html       # Main HTML page for the application
│   └── app.js           # JavaScript code for client-side interactions
├── Cargo.toml           # Rust project configuration file
├── index.json           # Stores indexed data of websites in JSON format
└── README.md            # Documentation for the project

Setup Instructions

  1. Clone the Repository

    git clone <repository-url>
    cd engine
  2. Install Rust Ensure you have Rust installed on your machine. You can install it from rust-lang.org.

  3. Build the Project Run the following command to build the project:

    cargo build
  4. Run the Server Start the server with:

    cargo run

    The server will be accessible at http://localhost:8080.

Usage The best way to use the application is to run the exe file, but alternatively, you may run the Rust backend on your laptop or a server to run it as a website.

Navigate to http://localhost:8080 in your web browser to access the application. Or alternatively, change the IP address to wherever your server is hosting it.

  • Use the provided API to index websites by sending a POST request to /api/index with a JSON body containing the URL.
  • Search indexed websites by sending a GET request to /api/search?query=<your-query>.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is the browser I made to provide a safe and simple way for elederly people to navigate the web also all coded in rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published