Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to latest FlutterFlow output. #6

Merged
merged 1 commit into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
674 changes: 0 additions & 674 deletions LICENSE

This file was deleted.

81 changes: 26 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,32 @@
# 👨🏽‍💻 AASTU Students App v3
# AASTU STUDENTS

![Dart Version](https://img.shields.io/badge/Dart-3.5-blue)
![Flutter Version](https://img.shields.io/badge/Flutter-3.24.2-blue)
![FlutterFlow Version](https://img.shields.io/badge/FlutterFlow-5.0.13%2B-blue)
A new Flutter project.

Welcome to the third iteration of the AASTU Students App—a productivity and social networking platform tailored for the students of Addis Ababa Science and Technology University. Unlike previous versions, this release is built using [FlutterFlow](https://flutterflow.io/), a Flutter-based UI framework, enhancing both development efficiency and user experience.
## Getting Started

## Features
FlutterFlow projects are built to run on the Flutter _stable_ release.

- **Productivity Tools**: Access academic resources, schedules, and reminders.
- **Social Networking**: Connect with peers, join groups, and participate in campus events.
- **User-Friendly Interface**: Designed with an intuitive UI for seamless navigation.
## Integration Tests

## Getting Started
To test on a real iOS / Android device, first connect the device and run the following command from the root of the project:

```bash
flutter test integration_test/test.dart
```

To test on a web browser, first launch `chromedriver` as follows:
```bash
chromedriver --port=4444
```

Then from the root of the project, run the following command:
```bash
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/test.dart \
-d chrome
```

Find more information about running Flutter integration tests [here](https://docs.flutter.dev/cookbook/testing/integration/introduction#5-run-the-integration-test).

To run this project locally:

1. **Clone the Repository**:
```
git clone https://github.com/gemechis-elias/aastu-students-app-v3.git
```
2. **Navigate to the Project Directory**:
```
cd aastu-students-app-v3
```
3. **Install Dependencies**:
```
flutter pub get
```
4. **Run the App**:
```
flutter run
```

**Note**: Ensure that you have Dart 3.5 and Flutter 3.24.2 installed on your machine.

## Contribution Guidelines

We welcome contributions to enhance the app:

1. **Fork the Project**: Click on the 'Fork' button at the top right corner of this repository.
2. **Clone Your Fork**:
```
git clone https://github.com/your-username/aastu-students-app-v3.git
```
3. **Create a New Branch**:
```
git checkout -b feature/your-feature-name
```
4. **Develop Your Feature**: Implement your changes locally.
5. **Submit a Ticket**: For feature suggestions or bug fixes, create an issue ticket detailing your changes.
6. **Provide Flutter Code**: Attach the relevant Flutter code snippets demonstrating the working feature.

*Please Note*: This app is built using FlutterFlow. Currently, we are unable to share collaboration access on FlutterFlow. Therefore, while we appreciate your code contributions, our team will integrate them into FlutterFlow to maintain consistency.

## 🤎 Support and Sponsorship

Your support helps us improve and maintain the app. If you find this project useful, please consider sponsoring us. [Sponsor this project](https://github.com/sponsors/gemechis-elias)

Thank you for contributing to the AASTU Students App and supporting the student community at Addis Ababa Science and Technology University.
Refer to this guide for instructions on running the tests on [Firebase Test Lab](https://github.com/flutter/flutter/tree/main/packages/integration_test#firebase-test-lab).
29 changes: 0 additions & 29 deletions android/app/google-services.json

This file was deleted.

Binary file removed assets/images/81ANaVZk5LL._SL1500_.jpg
Binary file not shown.
Binary file added assets/images/error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file removed assets/images/photo_2022-06-25_22-45-23.jpg
Binary file not shown.
Binary file removed assets/images/photo_2022-06-26_17-53-24.jpg
Binary file not shown.
Binary file removed assets/images/photo_2022-06-26_19-40-17.jpg
Binary file not shown.
Binary file removed assets/images/photo_2022-06-26_19-40-29.jpg
Binary file not shown.
Binary file removed assets/images/photo_2024-06-28_22-18-53.jpg
Binary file not shown.
42 changes: 42 additions & 0 deletions firebase/firestore.indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,48 @@
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "books",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "is_recently_added",
"order": "ASCENDING"
},
{
"fieldPath": "createdAt",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "books",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "is_featured",
"order": "ASCENDING"
},
{
"fieldPath": "createdAt",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "books",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "category",
"order": "ASCENDING"
},
{
"fieldPath": "createdAt",
"order": "DESCENDING"
}
]
}
]
}
41 changes: 24 additions & 17 deletions firebase/firestore.rules
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ service cloud.firestore {
}

match /postComments/{document} {
allow create: if true;
allow read: if true;
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if resource.data.user == /databases/$(database)/documents/users/$(request.auth.uid);
allow delete: if false;
}

match /userStories/{document} {
allow create: if true;
allow read: if true;
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if resource.data.user == /databases/$(database)/documents/users/$(request.auth.uid);
allow delete: if false;
}

match /storyComments/{document} {
allow create: if true;
allow read: if true;
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if resource.data.commentUser == /databases/$(database)/documents/users/$(request.auth.uid);
allow delete: if resource.data.commentUser == /databases/$(database)/documents/users/$(request.auth.uid);
}
Expand All @@ -44,22 +44,22 @@ service cloud.firestore {
}

match /friends/{document} {
allow create: if true;
allow read: if true;
allow write: if true;
allow delete: if true;
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if request.auth != null;
allow delete: if request.auth != null;
}

match /chats/{document} {
allow create: if true;
allow read: if true;
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if /databases/$(database)/documents/users/$(request.auth.uid) in resource.data.users;
allow delete: if resource.data.user_a == /databases/$(database)/documents/users/$(request.auth.uid);
}

match /chat_messages/{document} {
allow create: if true;
allow read: if true;
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if resource.data.user == /databases/$(database)/documents/users/$(request.auth.uid);
allow delete: if resource.data.user == /databases/$(database)/documents/users/$(request.auth.uid);
}
Expand Down Expand Up @@ -159,9 +159,16 @@ service cloud.firestore {
}

match /userPreferences/{document} {
allow create: if true;
allow read: if true;
allow write: if false;
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if request.auth != null;
allow delete: if false;
}

match /books/{document} {
allow create: if request.auth != null;
allow read: if request.auth != null;
allow write: if request.auth != null;
allow delete: if false;
}
}
Expand Down
6 changes: 3 additions & 3 deletions firebase/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
},
"scripts": {
"lint": "./node_modules/.bin/eslint --max-warnings=0 .",
"serve": "firebase -P aastu-students-demo emulators:start --only functions",
"shell": "firebase -P aastu-students-demo functions:shell",
"serve": "firebase -P emulators:start --only functions",
"shell": "firebase -P functions:shell",
"start": "npm run shell",
"logs": "firebase -P aastu-students-demo functions:log",
"logs": "firebase -P functions:log",
"compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ target 'Runner' do
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '11.2.0'
end

post_install do |installer|
Expand Down
Loading
Loading