bug fixes
This commit is contained in:
parent
fee7ea5678
commit
7b0ac130f8
5
README.md
Normal file
5
README.md
Normal file
@ -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
|
||||
@ -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.
|
||||
7. Test your api with `dart run test/fbla_api_test.dart`, setting `apiAddress` on line 8 to your api address.
|
||||
|
||||
@ -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`
|
||||
6. Build app with `flutter build --release`
|
||||
|
||||
@ -325,6 +325,11 @@ class _HomeState extends State<Home> {
|
||||
),
|
||||
);
|
||||
}),
|
||||
const SliverToBoxAdapter(
|
||||
child: SizedBox(
|
||||
height: 80,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user