Working locally:
.env
file in the root directory - refer to .env_example.docker compose up --build
at the root directory.Deployment:
git clone {repository_url}
..env
file in the root directory - refer to .env_example./frontend/src/lib/baseURL.ts
with your public URL and port.docker compose build
at the root directory.docker compose up
at the root directory.To build this project, ensure you have the following tools installed on your system:
Clone the Repository:
git clone https://github.com/bounswe/bounswe2024group6.git
cd bounswe2024group6/mobile/bulingo
Install Dependencies: Run the following command to install the necessary npm packages:
npm install
Log In to EAS (if not logged in): Ensure you are logged in to your EAS account:
eas login
(You will be prompted for your EAS account credentials.)
Build the Project Using EAS:
To build the project for Android, you will have to first delete the projectId
field from the app config. It should look like the following:
...
extra: {
eas: {
},
router: {
origin: false
}
},
...
You should then run the following command, which will prompt you to input a project id when you follow the steps presented.
eas build -p android --profile preview
Afterwards, you should update the app config accordingly. It will look something like this:
...
extra: {
eas: {
"projectId": "1b91f436-e301-4a27-aeb3-1c57be3bf9a2"
},
router: {
origin: false
}
},
...
Alternatively, you can build the application locally, but it has many more dependencies and you will have to deal with gradle. The command for it is this:
eas build -p android --profile preview --local
You will still need to login and change the projectId with the steps described above.
Note: You may be prompted for your EAS account username and password in this step if not already logged in.
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