Aplikasi iOS Simulasi CRUD Stok Barang dengan SwiftUI, Firebase CLI & Firestore

Last update: Jun 15, 2022

iStockery

Aplikasi iStockery adalah aplikasi stok inventory berbasis iOS yang dibuat menggunakan Firebase (Firestore) secara Local dengan fitur CRUD dan Sorting.

Preview

Folder & File Structure

Berikut struktur file dan folder pada iStockery:

.
├── iStockeryApp.swift          # Root Project: Konfirgurasi Firebase Firestore
├── StockItem.swift             # Deklarasi Attribute dari Firestore Collection & Dari Aplikasi
├── ContentView.swift           # Tampilan Beranda Aplikasi
├── SortType.swift              # Berisikan Data Attribute dari Collection Firestore yang digunakan
├── info
└── StockListViewModel.swift    # Berisikan Fungsi CRUD

Build With:

Requirements (How to Configure)

Installation

Untuk menggunakan repositori ini, ikutilah petunjuk penggunaan berikut dan pastikan git sudah terinstall pada komputer (semua perintah dilaksanakan pada cmd.exe atau terminal):

  1. Lakukan download .zip atau clone repositori dengan cara:
git clone https://github.com/dekapd99/iStockery.git
  1. Jika mendownload .zip, Extract zip tersebut dan buka Project di Xcode.
  2. Klik iStockery (paling atas) di Project Navigator. Cari TARGETS di panel iStockery dan klik Info.
  3. Buka website Firebase dan lakukan Login, kemudian klik Go To Console dan Add Projects. Pastikan namanya adalah "iStockery" dan matikan Google Analytic karena tidak diperlukan.
  4. Klik icon iOS Apple pada halaman project iStockery. Dan pastikan untuk masukkan nama pada Bundle ID contohnya seperti ini ".com.deka.iStockery".
  5. Setelah itu, Download Config File yang diberikan oleh Firebase dan klik Next. Setelah itu, Copy Dependencies / Package URL yang diberikan.
  6. Buka Xcode, klik General ubah dan sesuaikan nama Bundle Identifier seperti di Project Firebase.
  7. Klik File > Add Packages. Paste URL Dependencies / Package pada kolom Search. Ubah Depedency Rule menjadi Branch - master dan klik Add Package.
  8. Drag & Drop Config File (GoogleService-Info.plist) yang diberikan oleh Firebase ke dalam Project Navigation.
  9. Ikuti installasi secara Manual melalui Website Firebase atau Firebase CLI via Homebrew.
  10. Lakukan Login dengan Firebase, Inisialisasi Emulators (Pastikan menggunakan Firestore Emulators), Setting Ports, dan Cek Project List yang ada
firebase login
firebase init emulators
firebase projects:list
  1. Gunakan Project iStockery dari List Project yang ada -> Copy dan Paste Projects ID ke dalam Perintah ini
firebase use *project id*

contoh: firebase use istockery-d47d0
  1. Start Firebase di Local dengan command
firebase emulators:start
  1. Buka halaman baru di Browser, Copy & Paste URL Localhost
  2. Buat Scheme Database sederhana: Klik Start Collection, Collection ID = inventories.
  3. Akan ada 4 fields, yaitu:
  • Document ID: Biarkan Saja
  • (name, String, "") -> valuenya boleh diisi boleh tidak
  • (quantity, Number, "1") -> default valuenya dibuat jadi 1
  • (createdAt, Timestamp, "") -> valuenya diamkan saja karena akan autofill
  • (updatedAt, Timestamp, "") -> valuenya diamkan saja karena akan autofill
  1. Build & Run

License

No License

(back to top)

GitHub

https://github.com/dekapd99/iStockery
You might also like...

The app demonstrates how to use Firebase in a SwiftUI iOS app

Firebase SwiftUIDemo app This app demonstrates how to use Firebase in a SwiftUI iOS app. Firebase Setup Go to firebase.com Click new project. Copy app

Nov 28, 2021

Simple Todo Application using SwiftUI / Firebase / Redux.

Simple Todo Application using SwiftUI / Firebase / Redux.

Simple Todo Application using SwiftUI/Firebase/Redux/Combine. Light _ _ _ _ Dark _ _ _ Feature Use SwiftUI fully. Use Firebase. Authentication Cloud F

Jun 13, 2022

Completed Project for Authentication in SwiftUI using Firebase Auth SDK & Sign in with Apple

Completed Project for Authentication in SwiftUI using Firebase Auth SDK & Sign in with Apple

Completed Project for Authentication in SwiftUI using Firebase Auth SDK & Sign in with Apple Follow the tutorial at alfianlosari.com Features Uses Fir

Mar 10, 2022

SwiftUI, Firebase, Kingfisher, googleapis

 SwiftUI, Firebase, Kingfisher, googleapis

SwiftUI-KokaiByWGO Xcode Version 12.0 SwiftUI, Firebase, Kingfisher, googleapis Learn Thai with pictures and sounds Note : This version have no CMS so

Oct 6, 2021

Social Media platform build with swiftUI and Firebase with google and apple account integration for Signing In Users

Social Media platform build with swiftUI and Firebase with google and apple account integration for Signing In Users

Social Media platform build with swiftUI and Firebase with google and apple account integration for Signing In Users . Providing Users availability to upload posts and images add caption allowing other users to comment , with Find section to explore new people , new stories , User Profile section to allow the user to take control of his account .

Nov 3, 2021

A SwiftUI component which handles logging in with Apple to Firebase

A SwiftUI component which handles logging in with Apple to Firebase

Login with Apple Firebase SwiftUI I made this SwiftUI component to handle logging in with Apple to Firebase. Demo Gif Usage in SwiftUI struct ContentV

Jun 20, 2022

iOS Open-Source Telematics App with Firebase© integration

 iOS Open-Source Telematics App with Firebase© integration

Open-source telematics app for iOS. The application is suitable for UBI (Usage-based insurance), shared mobility, transportation, safe driving, tracking, family trackers, drive-coach, and other driving mobile applications

Jun 18, 2022

Firebase Quickstart Samples for iOS

Firebase Quickstarts for iOS A collection of quickstart samples demonstrating the Firebase APIs on iOS. Each sample contains targets for both Objectiv

Jun 25, 2022

IOS mobile application that uses URLSession and Firebase

IOS mobile application that uses URLSession and Firebase

DogApp IOS mobile application that uses URLSession and Firebase. First a dog ima

Feb 13, 2022
Aplikasi iOS Statistik Internasional Penyebaran Covid-19 dengan SwiftUI, MVVM Design Pattern, dan REST APIs dari rapidapi.com
Aplikasi iOS Statistik Internasional Penyebaran Covid-19 dengan SwiftUI, MVVM Design Pattern, dan REST APIs dari rapidapi.com

CovStats CovStats adalah aplikasi iOS Data Statistik Internasional Covid-19 yang datanya didapatkan dari rapidapi.com dengan struktur REST API. Dibuat

Jun 14, 2022
Firebase Cloud Firestore support library for iOS. 🧢
Firebase Cloud Firestore support library for iOS. 🧢

?? Ballcap-iOS Ballcap is a database schema design framework for Cloud Firestore. Why Ballcap Cloud Firestore is a great schema-less and flexible data

May 17, 2022
Swift UIKit E-Commerce (UgurShopping) No StoryBoard Firebase, FireStore, FirebaseAuth, KingFisher, SwiftEntryKit, ProgressHud, Alamofire UICollectionViewCompositionalLayout, NotificationCenter
Swift UIKit E-Commerce (UgurShopping)  No StoryBoard   Firebase, FireStore, FirebaseAuth, KingFisher, SwiftEntryKit, ProgressHud, Alamofire UICollectionViewCompositionalLayout, NotificationCenter

Swift UIKit E-Commerce (UgurShopping) No StoryBoard Firebase, FireStore, FirebaseAuth, KingFisher, SwiftEntryKit, ProgressHud, Alamofire UICollectionViewCompositionalLayout, NotificationCenter

Jun 6, 2022
In this mini app covered the concepts like basics of SwiftUI and Navigations and Animations and List with CRUD functions and MVVM and App Launch and App icons adding and also applied persistence using UserDefaults Concept.
In this mini app covered the concepts like basics of SwiftUI and Navigations and Animations and List with CRUD functions and MVVM and App Launch and App icons adding and also applied persistence using UserDefaults Concept.

TodoList In this application used the concepts from the beginner level project of SwiftUI_Evolve_1 The following concepts covered in this mini app Swi

Dec 4, 2021
Firebase Analytics Firebase Notification Alamofire KingFisher Ombdb API
Firebase Analytics Firebase Notification Alamofire KingFisher Ombdb API

MovieOmdbApp Firebase Analytics Firebase Notification Alamofire KingFisher Ombdb

Dec 20, 2021
CRUD App for iOS with Swift
CRUD App for iOS with Swift

Todoey ✓ Our Goal The objective of this tutorial is to understand how to save data in iOS. We'll look at various choices and learn to use UserDefaults

Mar 2, 2022
Modulo4NativoIOS - Atividade Modulo 4 Nativo IOS - CRUD com SireStore
Modulo4NativoIOS - Atividade Modulo 4 Nativo IOS - CRUD com SireStore

Modulo4NativoIOS Atividade Modulo 4 Nativo IOS - CRUD com Cloud Firebase Aluno:

Jan 10, 2022
CRUD - A simple iOS App to manage tasks

CRUD App ⭐ The App ?? A simple iOS App to manage tasks Setup ??‍?? Clone the rep

Feb 4, 2022
Realtime Database and Firestore parser

Columbina's FirebaseParser Easy parsing for Firebase Realtime Database or Firestore. Dealing with Firebase documents might be tricky. Since it doesn't

Mar 23, 2022
CLI tool to fetch a webpage's contents after it has finished loading

webpage-dl Fetch a webpage's contents via CLI after it has finished loading. Scraping HTML from webpages can't always be done via curl as it is often

Apr 21, 2022