Skip to content

IanWearsHat/IR24W-A3-G33

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IR24W-A3-G3

Group Members

Ian Dai - idai - 80419415

Xiao Du - xdu7 - 56714415

Henry Wang - penghanw - 85703671


For Python code:

Ensure Python is installed

  1. Run
cd api
  1. Create a virtual environment so that dependencies do not conflict
python -m venv .venv
  1. Activate virtual environment

    VS Code may prompt to automatically select the newly created virtual environment. Otherwise, for Mac/Linux, run

    source .venv/bin/activate

    and for Windows, run

    .\.venv\scripts\activate
  2. To install dependencies, run

pip install -r requirements.txt

You can now run any python code.

For creating index

Ensure you are in the root directory and that you have the all of the webpages in one folder labeled "DEV" in the indexer folder

Like so:

Indexer folder structure

To start creating the index, run

python indexer\indexer.py

or

python3 indexer\indexer.py

For backend:

  1. From root directory

Run

cd api
cd src
  1. Run
python main.py

or

python3 main.py

For Frontend:

  1. Install Node and npm here.

From root directory

Run

cd front

Run

npm install

Run

npm run dev

A server will start at http://localhost:5173/ (or 127.0.0.1:5173)

Making a query

Open a browser and navigate to http://localhost:5173/ (or 127.0.0.1:5173)

The page should look something like this

Search engine home

Simply enter a query into the search bar at the top and click Search

About

A Search Engine built from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published