Welcome to the LanguageFriend app! This guide will walk you through the setup process to get the application up and running on your local machine.
Before you start, make sure you have the following installed:
- Python: Flask is built with Python. Download and install Python from python.org.
- Flask: If Flask isn't installed, you can install it using pip with
pip install Flask
. - Git LFS: For the large files, you'll need Git LFS. Follow the setup instructions on the Git LFS website or use your system's package manager.
-
Clone the repository:
git clone https://github.com/inf2002/inf2002-team19-2023.git
-
Change to the project directory:
cd inf2002-team19-2023
-
Initialize and pull files with Git LFS:
git lfs install git lfs pull
-
Set up and activate the virtual environment:
- Linux/Mac:
python3 -m venv venv source venv/bin/activate
- Windows:
python -m venv venv .\venv\Scripts\activate
- Linux/Mac:
-
Install the required packages:
pip install -r requirements.txt
To use the LanguageFriend app locally:
-
In the project directory with the virtual environment activated, set the
FLASK_APP
environment variable toapp.py
:- Linux/Mac:
export FLASK_APP=app.py
- Windows:
set FLASK_APP=app.py
- Linux/Mac:
-
Run the Flask server:
flask run
The server will start, and the CLI will show the URL where the app is hosted, typically
http://127.0.0.1:5000
orhttp://localhost:5000
. -
In your web browser, go to the provided URL. The login page should appear.
-
Use the following credentials to log in:
- Username: inf2002
- Password: 2002
-
After logging in, you can access the main features like "Conversation", "Scenarios", and "Settings".
To see the LanguageFriend app in action, check out our demo video:
You can also navigate to additional pages by entering the paths /about
, /contact
, /transcript
, and more in your browser. The routes are defined in the app.py
file.