SkillAgentSearch skills...

ArangoPhx

Elixir Phoenix Project Template With ArangoDB support

Install / Use

/learn @SquashConsulting/ArangoPhx
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ArangoPhx - Phoenix Template Project with ArangoDB support

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Run ArangoDb on http://localhost:8529/
  • Create a dev db and name it arango_phx_dev or change the db name in config/dev.exs
  • Start Phoenix endpoint with mix phx.server

Repo

ArangoPhx.Repo uses ArangoX and has basic CRUD functionality plus a function for custom queries.

Available functions

Ecto.Schema and Ecto.Changeset can be used like you used to with a Phoenix + PostgreSQL project.

Arango.Migrate and Arango.Gen.Migration can be used to generate migration files, migrate, and rollback them.

ArangoPhx.Repo is custom Repo that exposes basic functionality to talk to Arango DB

Mix Tasks

  • mix arango.gen.migration - Generates a new migration for the ArangoPhx repo
  • mix arango.migrate or mix arango.migrate -d up - Runs all pending migrations.
  • mix arango.migrate down or mix arango.migrate -d down - Rolls last migration back.

TODO

Find the Project Board Here: https://github.com/rasjonell/ArangoPhx/projects/1

Related Skills

View on GitHub
GitHub Stars10
CategoryData
Updated2y ago
Forks0

Languages

Elixir

Security Score

80/100

Audited on Nov 7, 2023

No findings