- Docker Engine
- PostgreSQL
Working locally:
- Create a
.env
file in the root directory - refer to .env_example. - Open Docker Engine.
- Run
docker compose up --build
at the root directory. - You can view the website at http://localhost:5173/
Deployment:
- Select a virtual machine working on cloud environment.
- Connect to the virtual machine with a SSH connection. Make sure it has Docker in it.
- Clone the repository using
git clone {repository_url}
. - Create a
.env
file in the root directory - refer to .env_example. - Edit
/frontend/src/lib/baseURL.ts
with your public URL and port. - Run
docker compose build
at the root directory. - Run
docker compose up
at the root directory. - You can view the website at port 5173 at your public URL.
To build this project, ensure you have the following tools installed on your system:
- Git: Install Git
- Node.js and npm: Download Node.js (npm is included)
- EAS CLI: Set up EAS
-
Clone the Repository: bash git clone https://github.com/bounswe/bounswe2024group6.git cd bounswe2024group6/mobile/bulingo
-
Install Dependencies: Run the following command to install the necessary npm packages: bash npm install
-
Log In to EAS (if not logged in): Ensure you are logged in to your EAS account: bash eas login
(You will be prompted for your EAS account credentials.)
-
Build the Project Using EAS: To build the project for Android, use the following command: bash eas build -p android --profile preview
Note: You may be prompted for your EAS account username and password in this step if not already logged in.
-
Access the APK: Once the build completes, you will receive a URL to download the APK. You can find the APK download link:
- On the EAS build details page
- In the terminal output when the eas build process finishes
-
Install the APK on Your Device: After downloading the APK file, you can install it on your Android device. Enable "Install from Unknown Sources" in your phone’s settings if needed.
The backend can be accessed through the following URL: http://161.35.208.249:8000
The frontend can be accessed through the following URL: http://161.35.208.249:5173