3

GitHub - octabytes/fireo-nodejs: Google Cloud Firestore modern and simplest conv...

 2 years ago
source link: https://github.com/octabytes/fireo-nodejs
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

A modern and simplest convenient ORM package in NodeJs. FireO is specifically designed for the Google's Firestore, it's more than just ORM. It implements validation, type checking, relational model logic and much more facilities.

Get Started!

Available in other language (Python)

  1. FireO is available also in python FireO Python

Installation

npm install fireo

Example Usage

const {Model, Field} = require("fireo")

class User extends Model:
    name = Field.Text();


const u = User.init();
u.name = "Azeem Haider";
await u.save()

// Get user
user = await User.collection.get({key: u.key})
console.log(user.name)

Documentation

Full documentation is available in the FireO Doc.

Contributing

Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

  1. Fix bug or add new features
  2. Write tests for your functionality
  3. Mention in Documentation, what you has done and how other can use it

License

This is official FireO Repository. Powered by OctaByte Licensed under Apache License 2.0


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK