{"repo":"1amageek/ballcap.ts","free":true,"listed":false,"github":"https://github.com/1amageek/ballcap.ts","clone":"git clone https://github.com/1amageek/ballcap.ts.git","description":"Cloud Firestore support library for admin. 🧢","language":"TypeScript","stars":105,"topics":["cloud-firestore","firebase","firebase-firestore","cloud-functions"],"license":null,"category":"databases-storage","readme_excerpt":"ballcap for TypeScript Ballcap is a database schema design framework for Cloud Firestore. This repository supports the WEB and Admin . Why Ballcap Cloud Firestore is a great schema-less and flexible database that can handle data. However, its flexibility can create many bugs in development. Ballcap can assign schemas to Cloud Firestore to visualize data structures. This plays a very important role when developing as a team. Installation Web Admin(node.js) Get Started - Expo - React Expo Create your first project Edit tsconfig.json Firebase and Ballcap initialize React Create your first project Edit webpack.config.js https://gist.github.com/1amageek/184a6054f00f1a722d37f7b4cba406a0 Edit tsconfig.json Usage Initialize To use Ballcap, you need to initialize it. RootReference Considering the extensibility of DB, it is recommended to provide a method of version control. CRUD Document Get JSON Batch Retrive document Convert from DocumentSnapshot Field Use Field to represent a field in a document. A Field can have another Document. In that case, use the @Codable decorator. Codable A Document in Ballcap can have nested Documents and Models. Use Cadable to provide type to Ballcap If the nested object is a Document, it can have the following structure because the Document contains an ID. If you want to keep the structure, set the second argument to Codable to true. By default, it is false. If false, only the data is retained. SubCollecion Use SubCollection and Collection to represent S","default_branch":null,"files":null,"tree":[],"storefront":"/r/1amageek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/1amageek/ballcap.ts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}