Morzaram / pocket_flask

pocket_flask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PocketFlask

TODO: Add description

Installation

If available in Hex, the package can be installed by adding pocket_flask to your list of dependencies in mix.exs:

def deps do
  [
    {:pocket_flask, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/pocket_flask.

Installing Pocketbase

mix deps.get
iex -S mix
> PocketBaseInstaller.download_and_run_pocketbase

In your config.exs add the following

import Config

config :pocket_flask,
  rest_url: "http://127.0.0.1:8090/api", #your api url
  cache: true, # Cache responses?
  retry_count: 0, # Times to retry requests
  auth_method: :email,
  token_refresh_interval: 1209600 # This depends on what is set in pocketbase

In your .env set the pocketbase email and password

PB_ADMIN_EMAIL="chris.aa.king@gmail.com"
PB_ADMIN_PASSWORD="chris.aa.king@gmail.com"

In your .gitignore add the following so it doesn't get commited

/pb_data/
/pb_migrations/
pocketbase

implement authorization genserver

About

pocket_flask


Languages

Language:Elixir 100.0%