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

Overview

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)

You might also like...
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

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

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

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

 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

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 .

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

SwiftUI + Firebase template
SwiftUI + Firebase template

SwiftUI + Firebase template project This is a template project with SwiftUI and Firebase. You can create an iOS with SwiftUI and Firebase right away w

 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

Owner
DK
Improving skills through project everyday
DK
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

DK 7 Aug 1, 2022
Aplikasi CrypTraces adalah MacOS Widget Crypto Tracker dengan SwiftUI, Combine & Cocoa Framework, dan WebSocket & CoinCap API

Aplikasi CrypTraces adalah MacOS Widget Crypto Tracker dengan SwiftUI, Combine & Cocoa Framework, dan WebSocket & CoinCap API. Aplikasi ini berbentuk Widget di Menu Bar MacOS dengan menampilkan beberapa Crypto Currency seperti Bitcoin (BTC), Ethereum (ETH), Dogecoin (DOGE), Monero (XMR), dan Litecoin (LTC).

DK 6 Aug 1, 2022
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

1amageek 229 Jan 2, 2023
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

Ugur Hamzaoglu 2 Oct 16, 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.

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

Sivaram Yadav 2 Dec 4, 2021
Firebase Analytics Firebase Notification Alamofire KingFisher Ombdb API

MovieOmdbApp Firebase Analytics Firebase Notification Alamofire KingFisher Ombdb

Kaya 0 Dec 20, 2021
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

Utku Enes GÜRSEL 0 Mar 2, 2022
Modulo4NativoIOS - Atividade Modulo 4 Nativo IOS - CRUD com SireStore

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

Nilton Firmino 1 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

null 1 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

Columbina 2 Mar 23, 2022