ESGI-69 / challenge-flutter-go

1 stars 0 forks source link

Challenge Flutter Go

Team

Gatien ANIZAN (@mrpinkcat)

Quentin PELTIER (@Timdev0)

Samuel GUENIER (@sguenier)

Yohan CENTANNI (@ycenta)

Features

CD/CD

Back

Front

Development

Backend

Launch with VS Code debugger with /go folder openned

Copy .env.example to .env. & set the database IP for development. See Deployment for more info.

Install swag with this command

go install github.com/swaggo/swag/cmd/swag@latest

You may need to add the path to your .bashrc/.zshrc file

export PATH=$PATH:$(go env GOPATH)/bin

If you want to generate Swagger doc do this command in the go directory:

swag init -o ./api/docs

Deployment

All the following commands are executed in the /k8s directory.

You can now connect the database to an database client and view its contents.

You can now use the cluster-ip to connect the backend service to an API client for testing the endpoints.

flutter

To use the google maps api and show the map, please add the api key in move_together_app/android/app/src/main/AndroidManifest.xml or run the command (flutter run or build)

flutter run --dart-define GOOGLE_MAPS_API_KEY=<THEGOOGLEAPIKEY>

In some cases, the map might still show a blank map with no terrain textures, if so, use the following command before running the flutter app

flutter clean

Command to update the app icon :

flutter pub pub run flutter_launcher_icons:main