Skip to content

TeoJJss/subway-kl-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KL Subway Outlets Finder Project (Backend)

Introduction

The KL Subway Outlets Finder Project is a project which webscrap the Subway outlets in Kuala Lumpur area from the offical outlet locator.

This repository contains the backend script for this project.
It should be used together with the frontend script.

The backend script is built using Python and FastAPI, with the support of Selenium, SQLite3 and NLTK.

Prerequisites

Python 3.11 is used for the development.
Please create a virtual environment and install all libraries:

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

After that, the server should be able to launch through the following command:

uvicorn app:app

The backend server should be launched simultaneously when the frontend script is launched.

Important Notes

  • There are some configurations can be editted at config.py
  • This backend script should be used together with the frontend script at https://github.com/TeoJJss/subway-kl-frontend. The frontend script will send HTTP requests to the APIs in this backend server.
  • The backend server is hosted at the 8000 port by default. If it is changed, please change the URL at frontend script.