https://github.com/jarlah/activity-planner
An example Phoenix application with foreign key multi tenancy
https://github.com/jarlah/activity-planner
ecto elixir flyio phoenix postgres
Last synced: 6 months ago
JSON representation
An example Phoenix application with foreign key multi tenancy
- Host: GitHub
- URL: https://github.com/jarlah/activity-planner
- Owner: jarlah
- Created: 2023-09-12T12:37:12.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T21:04:16.000Z (almost 2 years ago)
- Last Synced: 2025-04-11T22:05:01.082Z (6 months ago)
- Topics: ecto, elixir, flyio, phoenix, postgres
- Language: Elixir
- Homepage: https://activity-planner-poc.fly.dev
- Size: 921 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ActivityPlanner
To start your Phoenix server:
* Run `mix setup` to install and setup dependencies
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
## Start clustered nodes locally
In first terminal:
```
PORT=4000 iex --name a@127.0.0.1 -S mix phx.server
```In second terminal:
```
PORT=4001 iex --name b@127.0.0.1 -S mix phx.server
```Then you can play around with the job mamager and the nodes
Run in first terminal and see what node is adding the job
```
ActivityPlanner.JobManager.delete_job(%{ name: "bogus", activity_group_id: -1 })
```Kill the terminal that said "Deleting job"
Run the command again in the now only remanining terminal.
It will say "Deleting job" plus other log statements for loading the genserver on that node.
## ER diagram
