Skip to content

An example application for the Ash Framework

Notifications You must be signed in to change notification settings

dolfinus/ash_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helpdesk

To start the application:

Setup the project with mix setup Start Phoenix endpoint with mix phx.server or, to get a shell, start it with iex -S mix phx.server See the resources in lib/helpdesk/accounts/resources and lib/helpdesk/tickets/resources. Addtionally, see the api for each context in lib/helpdesk/accounts/api.ex and lib/helpdesk/tickets/api.ex

To "log in" set a user-id header. You can browse the database for that information, or run this in the terminal (start the) to get a list of users: Helpdesk.Accounts.Api.read!(Helpdesk.Accounts.User). For what a user should/shouldn't be able to see, look at the policies in each resource.

To use the graphql, visit http://localhost:4000/playground. There is an area for setting headers in the bottom left

To use the json api, I recommend using insomnia or postman. The routes are available are defined in each resource. For resources in the accounts API, they are prefixed with /accounts and the tickets API is prefixed with /tickets. A good one to try first might be just hitting localhost:4000/tickets/tickets

Additionally, there is a rudimentary live view set up, on which I am testing some experimental integrations with ash and phoenix.

See the documentation/project for more information on Ash: ash-project/ash

About

An example application for the Ash Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 79.3%
  • CSS 11.9%
  • HTML 3.9%
  • JavaScript 3.1%
  • SCSS 1.8%