Guava is a Flutter-based front-end application that displays articles on nutrition and sports. The application's name stems from the vibrant "Guava" graphical identity. The main features of the application include viewing lists of articles, liking articles and adding them to favorites, displaying the details of an article, multi-language management through the NestJS backend, as well as global state management using Flutter's BlocBuilder.
Start by cloning this repository to your local machine.
git clone https://github.com/DuncanTilliole/guava
Navigate to the project directory and install the necessary dependencies:
cd guava/front
flutter pub get
This application uses Firebase, so you'll need to create a firebase_options.dart file with your Firebase configuration. For security reasons, this file is not included in the repository.
Create a new firebase_options.dart file in the lib/config/ directory, and add your Firebase configuration like so:
const firebaseOptions = const FirebaseOptions(
apiKey: "your-api-key",
authDomain: "your-auth-domain",
databaseURL: "your-database-url",
projectId: "your-project-id",
storageBucket: "your-storage-bucket",
messagingSenderId: "your-messaging-sender-id",
appId: "your-app-id",
);
This application needs to know the IP address or DNS of the backend to fetch the articles. Create a .env file in the ./assets/env directory and add the backend's URL:
DATABASE_URL=http://your-backend-url
This application requires a running instance of the NestJS backend server. Please refer to the backend repository for instructions on how to set it up and run it.
Finally, you can run the application:
flutter run
Enjoy using Guava!
Remember, if you encounter any problems or have any suggestions, feel free to open an issue or a pull request.
Made by TILLIOLE DUNCAN