clone app of some Uber features
- Flutter
- Dart
To run this application, you must have installed
- Flutter
- Docker
- Docker compose
docker
and docker-compose
are necessary for the backend available at https://github.com/maelfosso/andi-taxi-api
Follow these steps to launch the application
The backend is available at https://github.com/maelfosso/andi-taxi-api
. Follow the steps indicated there to run it.
You can use ifconfig
or ip addr show
to get your IP address
git clone https://github.com/maelfosso/andi-taxi-api
cd andi-taxi-api
touch .env
The application depends on
-
The backend, so we need the IP address of the host running this one. Remember you wrote it down at Step 2. You refer to it in the
env
file with theBASE_URL
variable. -
Google Maps, so we need your Google maps API Key. You refer to it into the
env
file through theGOOGLE_MAPS_API_KEY
variable.
At the end, your .env
file will look like this
BASE_URL=http://x.x.x.x:3000/api
GOOGLE_MAPS_API_KEY=
flutter run
- Creates an account as client or driver
- Sign in (keep the code displayed)
- Enter the code. You have one minute.
The default language of the application is the English. It's possible for you to add a new language.
If you want to add the Russian language for example, here is the process
The code of the Russian language is **ru**
Open the lib/main.dart
file.
In the _AppViewState
class, localise the line with
const Locale('en', '')
Add this line below directly after
const Locale('ru', '')
Into the folder lib/l10n
, create a new file called app_ru.arb
.
Copy the content of app_en.arb
and modify it with the good content.
Please, enable the Location on your smartphone.
Just run the app like usual with flutter run
- GitHub: @maelfosso
- Twitter: @maelfosso
- LinkedIn: LinkedIn
This project is MIT licensed.