Git Product home page Git Product logo

fivem_pocketbase's Introduction

fivem_pocketbase

A FiveM resource to communicate with a PocketBase database using pocketbase. Get started using PocketBase by downloading the database here. It's an extremely fast, extremely lightweight database that uses SQLite, built with Go, and includes it's own admin web UI.

โœจ Features

  • Several CRUD methods for records-related tasks, with more planned in future releases.
  • Simple storage and access of JSON data, without the need to encode/decode.
  • Access to related tables via expand field, similar to MySQL JOINs.
  • Added usage examples.

๐Ÿ“š Installation

  • Clone this repository to fivem_pocketbase in your FiveM resources folder.
  • Copy fivem_pocketbase/database.cfg to your server root directory.
  • Add the following lines to your server config:
exec "database.cfg"
start fivem_pocketbase
  • Change pocketbase_url, pocketbase_useremail, and pocketbase_password in database.cfg.
  • Run npm install in resources/fivem_pocketbase directory.

๐Ÿ‘€ Usage

  • Add the following line to the fxmanifest of the resource you want to use fivem_pocketbase in:
server_script '@fivem_pocketbase/lib/PocketBase.lua'
  • LUA Usage functions
  • I have included a couple collections that can be imported in your PocketBase instance, in the sample_collections.json file.
  • Generate a UML diagram of your database using PocketBaseUML.

๐Ÿ‘ Credit

I enjoyed playing around with the PocketBase database, and wanted to try to create my own lib in FiveM. I used knowledge, code and patterns from the fivem-mongodb resource to develop this. Huge shoutout to the Overextended group for technical discussions and support.

Discord

Joe Szymkowicz FiveM Development

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.