90613635fb
merge: updates from upstream
...
continuous-integration/drone/pr Build is passing
Conflicts:
.gitignore
lib/wabanex/application.ex
mix.lock
2024-09-22 19:06:02 +00:00
9be7566cbb
feat: execute service as distributed erlang ( #96 )
...
continuous-integration/drone/push Build is passing
To create a cluster with distributed nodes, the following changes were made:
* Use [`dns_cluster`][0] to execute distributed nodes
* Add _script_ to execute distributed nodes locally
Also, improve local execution by:
* Use [`mix release`][1] to make easier [deploy `phoenix`][2]
* Use [`compose watch`][3] to synchronize code from the host with the service
Some minor improvements:
* Ignore files and folders in git and docker
* Remove boilerplate comments
[0]: https://github.com/phoenixframework/dns_cluster
[1]: https://hexdocs.pm/mix/Mix.Tasks.Release.html
[2]: https://hexdocs.pm/phoenix/releases.html
[3]: https://docs.docker.com/compose/how-tos/file-watch/
Co-authored-by: Joao P Dubas <joao.dubas@gmail.com >
Reviewed-on: #96
Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com >
Co-committed-by: Joao P Dubas <joao.dubas+gitea@gmail.com >
2024-09-22 18:56:27 +00:00
b415b38184
feat(growth): load data on application start
...
To make this possible, the following changes were made:
* Use `Task` to start the load process
* Create `ets` table before start the async task
* This is needed to keep the tables alive after the task process exits
* Adjust the application to start the `Growth.Indicators.Load` task
2024-06-10 12:11:18 +00:00
34c3a3e4c2
feat: expose system metrics ( #4 )
...
Use prom_ex to expose system metrics to prometheus and create dashboards.
Co-authored-by: Joao P Dubas <joao.dubas@gmail.com >
Reviewed-on: #4
2022-05-03 16:19:39 +00:00
410a509faa
chore: apply credo suggestions ( #3 )
...
continuous-integration/drone/push Build encountered an error
Mainly add module docs and fix some aliases.
2022-04-22 00:49:00 +00:00
Joao P Dubas
1597d34a2d
[extra-01] adjust training query to filter by period
2021-06-28 00:31:44 +00:00
Joao P Dubas
a69b771847
[extra-01] training has a period validity
...
We move from start/end date to a period date range to represent the
interval where a training take place.
Besides that, new constraints are added to ensure a trainings of a user
can't overlap. These constraints reflect in changeset validation.
2021-06-28 00:31:36 +00:00
Joao P Dubas
da77d81200
[day-05] preload training alongside user
...
Preload training and exercises when fetching an user and expose this
information in graphql.
2021-06-26 18:08:29 +00:00
Joao P Dubas
58c4601203
[day-04] add exercise schema
...
So a training is a collection of exercises that have a description and a
protocol to be followed.
2021-06-26 17:26:14 +00:00
Joao P Dubas
ea5616addf
[day-04] add training schema
...
With this we can represent a traning program for a user.
2021-06-26 17:25:53 +00:00
Joao P Dubas
3709cd265a
[day-02] add context to create/get a user
...
Create context module to create and fetch a user.
2021-06-22 23:57:10 +00:00
Joao P Dubas
d578bc6cf3
[day-02] validate user input
...
Also improve migration to reflect requirements in validation done
through `Ecto.Changeset`.
2021-06-22 23:56:07 +00:00
Joao P Dubas
97af827bc2
[day-02] add user schema and migration
...
Add elixir struct to represent an user and its corresponding
representation on the database.
2021-06-22 23:55:02 +00:00
Joao P Dubas
fc73f30dd0
[day-01] setup imc calc and route
2021-06-22 01:56:40 +00:00
Joao P Dubas
8658384030
[day-01] phoenix project setup
...
Create new phoenix project
2021-06-22 01:55:16 +00:00