Skip to content

vehikl/spare-parts

Repository files navigation

Vehikl Spare Parts

All Contributors

This application is an inventory tracker for the Greater Vehikl Team. Chairs, desks, monitors and much more all in one place.

Development setup

Requirements

  • Flutter v3 install here
  • Firebase Tools: npm i -g firebase-tools
  • FlutterFire CLI: dart pub global activate flutterfire_cli
  • Optional (but recommended): VS Code or Android Studio for better tooling around Flutter development

Setup

Similarly to npm scripts, Flutter uses derry to run custom scripts. All scripts are defined in the pubspec.yaml under scripts. Install derry globally:

flutter pub global activate derry

Local

First-time Setup
  1. Install dependencies for running firebase functions and build them:
cd functions
npm install
npm run build
  1. Authenticate with Firebase:
firebase login
  1. Fetch Firebase configuration files (google-services.json and flutter_options.dart):
flutterfire configure
  1. Start the Firebase emulators and seed data from /emulator_data:
firebase emulators:start --import ./emulator_data
  1. Run the app:
flutter run -d <device> --dart-define=USE_EMULATORS=true

or run it through your favourite IDE.

Production

If you want to run the production app, make sure you have access to the production Spare Parts Firebase project.

  1. Run the app:
flutter run -d <device>

or run it through your favourite IDE.

Testing

Before running the tests it is required to build mock classes with

derry build-mocks

Run the tests:

flutter test

Generate coverage:

flutter test --coverage

VS Code Extensions

Useful Resources

Contributors

Thanks go to these wonderful people (emoji key):

Andrii Denysenko
Andrii Denysenko

💻 🎨 🤔 ⚠️ 👀
Alisa Vynohradova
Alisa Vynohradova

💻 🎨 🤔 ⚠️
Karen Gallego
Karen Gallego

💻 🎨
Adam Frank
Adam Frank

💻 🎨
whitfona
whitfona

💻 🎨
Oleksandr Levinskyi
Oleksandr Levinskyi

💻
Becs403
Becs403

💻
Deep Panchal
Deep Panchal

💻
Add your contributions