All Projects → ash-project → Ash

ash-project / Ash

Licence: mit
A resource based framework for building Elixir applications

Programming Languages

elixir
2628 projects
dsl
153 projects

Labels

Projects that are alternatives of or similar to Ash

Benchmarks
Fast and low overhead web framework fastify benchmarks.
Stars: ✭ 328 (-2.09%)
Mutual labels:  framework
Livecollections
Automatically perform UITableView and UICollectionView animations between two sets of immutable data. It supports generic data types and is fully thread-safe.
Stars: ✭ 337 (+0.6%)
Mutual labels:  framework
Kore
Kore (https://kore.io) is an easy to use web application platform for writing scalable web APIs in C. Its main goals are security, scalability and allowing rapid development and deployment of such APIs.
Stars: ✭ 3,477 (+937.91%)
Mutual labels:  framework
Comet
Modern PHP framework for building blazing fast REST APIs, CRUDs and microservices
Stars: ✭ 328 (-2.09%)
Mutual labels:  framework
Towel
Throw in the towel.
Stars: ✭ 333 (-0.6%)
Mutual labels:  framework
Elm Mdc
Elm port of the Material Components for the Web CSS/JS library
Stars: ✭ 338 (+0.9%)
Mutual labels:  framework
Apprise
Apprise - Push Notifications that work with just about every platform!
Stars: ✭ 4,307 (+1185.67%)
Mutual labels:  framework
Restana
Super fast and minimalist framework for building REST micro-services.
Stars: ✭ 341 (+1.79%)
Mutual labels:  framework
Filter.js
Filter.js: Video and Image Processing and Computer Vision Library in pure JavaScript (Browser and Node.js)
Stars: ✭ 335 (+0%)
Mutual labels:  framework
Syphon Framework
Syphon is a Mac OS X technology to allow applications to share video and still images with one another in realtime, instantly.
Stars: ✭ 341 (+1.79%)
Mutual labels:  framework
Jobrunr
An extremely easy way to perform background processing in Java. Backed by persistent storage. Open and free for commercial use.
Stars: ✭ 331 (-1.19%)
Mutual labels:  framework
Cntk World
🌎 Simple and ready-to-use deep learning examples for the Microsoft Cognitive Toolkit (CNTK)
Stars: ✭ 335 (+0%)
Mutual labels:  framework
Framework
Source code of Ice framework
Stars: ✭ 339 (+1.19%)
Mutual labels:  framework
The Seo Framework
The SEO Framework WordPress plugin.
Stars: ✭ 329 (-1.79%)
Mutual labels:  framework
Neutralinojs
Portable and lightweight cross-platform desktop application development framework
Stars: ✭ 4,731 (+1312.24%)
Mutual labels:  framework
Egg
🥚 Born to build better enterprise frameworks and apps with Node.js & Koa
Stars: ✭ 17,616 (+5158.51%)
Mutual labels:  framework
Anchor Cms
A lightweight blog CMS for PHP
Stars: ✭ 3,359 (+902.69%)
Mutual labels:  framework
Dxut
DXUT is a "GLUT"-like framework for Direct3D 11.x Win32 desktop applications; primarily samples, demos, and prototypes.
Stars: ✭ 341 (+1.79%)
Mutual labels:  framework
Promises
Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.
Stars: ✭ 3,576 (+967.46%)
Mutual labels:  framework
Pogo
Server framework for Deno
Stars: ✭ 341 (+1.79%)
Mutual labels:  framework

Logo Elixir CI License: MIT Coverage Status Hex version badge

Documentation

All documentation is contained in the generated hex documentation located here. Head there for installation and usage information. What follows is only a brief introduction to Ash.

ALPHA NOTICE

Ash is in alpha. The package version is 1.0.0+, and most of the time that means stable, but in this case it does not. The 2.0 release will be the stable release.

Upgrading to 1.27.0+

Typically a project wouldn't have breaking changes on 1.0.0+ that only change the minor version. See the ALPHA NOTICE above.

If you were using Ash prior to 1.27.0, a breaking change was made that will affect you if you are

  • using the postgres data layer
  • are using the create_timestamp or update_timestamp helpers

The default type for those attributes was changed to :utc_datetime_usec. If you don't want to change your data, you can update the type used by your timestamps like so:

created_timestamp :inserted_at, type: :utc_datetime
updated_timestamp :updated_at, type: :utc_datetime

If you want to change the data to leverage this new (more specific) type, you can create a migration like so:

mix ecto.gen.migration update_timestamp_types
# In the generated migration

def change do
  # do this for each table
  alter table(:table_name) do
    # do this for each timestamp you want to change on that table
    modify :attribute_name, :utc_datetime_usec, from: :utc_datetime
  end

  ...
end

Dependency

def deps do
  [
    {:ash, "~> 1.29.0-rc0"}
  ]
end

Links

Guides

Extensions

APIs

Authorizers

Datalayers

Introduction

Traditional MVC Frameworks (Rails, Django, .Net, Phoenix, etc) leave it up to the user to build the glue between requests for data (HTTP requests in various forms as well as server-side domain logic) and their respective ORMs. In that space, there is an incredible amount of boilerplate code that must get written from scratch for each application (authentication, authorization, sorting, filtering, sideloading relationships, serialization, etc).

Ash is an opinionated yet configurable framework designed to reduce boilerplate in an Elixir application. Ash does this by providing a layer of abstraction over your system's data layer(s) with Resources. It is designed to be used in conjunction with a phoenix application, or on its own.

To riff on a famous JRR Tolkien quote, a Resourceis "One Interface to rule them all, One Interface to find them" and will become an indispensable place to define contracts for interacting with data throughout your application.

To start using Ash, first declare your Resources using the Ash Resource DSL. You could technically stop there, and just leverage the Ash Elixir API to avoid writing boilerplate. More likely, you would use extensions like Ash.JsonApi or Ash.GraphQL with Phoenix to add external interfaces to those resources without having to write any extra code at all.

Ash is an open-source project and draws inspiration from similar ideas in other frameworks and concepts. The goal of Ash is to lower the barrier to adopting and using Elixir and Phoenix, and in doing so help these amazing communities attract new developers, projects, and companies.

Example Resource

defmodule Post do
  use Ash.Resource

  actions do
    read :read

    create :create
  end

  attributes do
    attribute :name, :string
  end

  relationships do
    belongs_to :author, Author
  end
end

See the Getting Started Tutorial for more information.

For those looking to add Ash extensions:

  • see Ash.Dsl.Extension for adding configuration.
  • If you are looking to write a new data source, also see the Ash.DataLayer documentation.
  • If you are looking to write a new authorizer, see Ash.Authorizer
  • If you are looking to write a "front end", something powered by Ash resources, a guide on building those kinds of tools is in the works.

Creating a new release of Ash

  • check out the repository locally
  • run mix git_ops.release (see git_ops documentation for more information)
  • check the changelog/new release number
  • push (with tags) and CI will automatically deploy the hex package
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].