From 7b0ac130f801990a4a9411f61892317614032dd2 Mon Sep 17 00:00:00 2001 From: Drake Marino Date: Sun, 7 Apr 2024 13:18:44 -0500 Subject: [PATCH] bug fixes --- README.md | 5 +++++ fbla-api/README.md | 10 ++++++---- fbla_ui/README.md | 4 ++-- fbla_ui/lib/home.dart | 5 +++++ 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..485f6e4 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +This is my app `Job Link` for the 2023-2024 FBLA Coding and Programming event. + +It uses the [Flutter Framework](https://flutter.dev/) for the front end and [Dart Language](https://dart.dev/) for both the front end and API. + +Please view the README in [fbla_ui](fbla_ui/README.md) and [fbla-api](fbla-api/README.md) for specific instructions for installation and usage for each part of the app diff --git a/fbla-api/README.md b/fbla-api/README.md index 3e75257..c79a382 100644 --- a/fbla-api/README.md +++ b/fbla-api/README.md @@ -7,9 +7,9 @@ This is the API for my 2023-2024 FBLA Coding & Programming App 3. Clone the repo ``` git clone https://git.marinodev.com/MarinoDev/FBLA24.git -cd FBLA24/api/ +cd FBLA24/fbla-api/ ``` -3. Run `dart pub install` to install dart packages +4. Run `dart pub install` to install dart packages ## Usage @@ -22,7 +22,8 @@ CREATE DATABASE fbla CONNECTION LIMIT = -1 IS_TEMPLATE = False; ``` -Make sure to change [username] to the actual username of your postgres instance +Make sure to change [username] to the actual username of your postgres instance. + 2. Create `businesses` table ``` -- Table: public.businesses @@ -51,6 +52,7 @@ ALTER TABLE IF EXISTS public.businesses OWNER to [username]; ``` Make sure to change [username] to the actual username of your postgres instance + 3. Create `users` table ``` -- Table: public.users @@ -76,4 +78,4 @@ ALTER TABLE IF EXISTS public.users Note: the username and password you use here will be what you use to log into the app as an admin 6. Your database should be all set up! Start the API with `dart run lib/fbla_api.dart` or alternatively, run it in a docker container with [Docker Build](https://docs.docker.com/reference/cli/docker/image/build/) and [Docker Compose](https://docs.docker.com/compose/) using the included [Dockerfile](Dockerfile) and [docker-compose.yml](docker-compose.yml) files. If using `Docker Compose`, change the first portion of the volumes path on line 9 to any desired storage location. Note the address it is serving at, you will need this to connect it to the UI, and to run tests. -7. Test your api with `dart run test/fbla_api_test.dart`, setting `apiAddress` on line 8 to your api address. \ No newline at end of file +7. Test your api with `dart run test/fbla_api_test.dart`, setting `apiAddress` on line 8 to your api address. diff --git a/fbla_ui/README.md b/fbla_ui/README.md index 870d86d..719ad9c 100644 --- a/fbla_ui/README.md +++ b/fbla_ui/README.md @@ -12,9 +12,9 @@ alternatively, you can compile it yourself for use with your own API and databas ``` git clone https://git.marinodev.com/MarinoDev/FBLA24.git -cd FBLA24/ui/ +cd FBLA24/fbla_ui/ ``` 4. Run `flutter pub get` to install all dependencies 5. Optional: set `apiAddress` at the top of `lib/api_logic.dart` -6. Build app with `flutter build --release` \ No newline at end of file +6. Build app with `flutter build --release` diff --git a/fbla_ui/lib/home.dart b/fbla_ui/lib/home.dart index 46c1e8d..ecf3083 100644 --- a/fbla_ui/lib/home.dart +++ b/fbla_ui/lib/home.dart @@ -325,6 +325,11 @@ class _HomeState extends State { ), ); }), + const SliverToBoxAdapter( + child: SizedBox( + height: 80, + ), + ) ], ), ),