Skip to content

Commit

Permalink
[GH-716] Deploy Configurator webserver + start using it (#719)
Browse files Browse the repository at this point in the history
* Delete everything related to old config implementations

* Add missing curse fields to character schema

* Update seeds due to code changes

* Add functions to delete and get all characters from curse of mirra

* Update configurator and gateway controllers with new functions

* Differentiate characters table with configurator characters table

* Add configurator app to central_backend release

* Add assets deploy to deployment script

* Start configurator webserver in another port

* Update configurator host and port

* Update configurator app README

* Add game_backend as configurator dependency

* Update configurator controller tests
  • Loading branch information
Nico-Sanchez authored Jun 28, 2024
1 parent ec1a672 commit 3ca50ab
Show file tree
Hide file tree
Showing 33 changed files with 148 additions and 765 deletions.
40 changes: 9 additions & 31 deletions apps/configurator/README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,21 @@
# Configurator

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).

## Learn more

* Official website: https://www.phoenixframework.org/
* Guides: https://hexdocs.pm/phoenix/overview.html
* Docs: https://hexdocs.pm/phoenix
* Forum: https://elixirforum.com/c/phoenix-forum
* Source: https://github.com/phoenixframework/phoenix

# Configurator

This app is in charge of the configurations. Think either full game config or feature flags for A/B testing

In it you will be able to create new configurations and decide the default version to be used. Configurations are inmutable to allow rollbacks and easier A/B testing, you can always create a new one based on the default one or one in particular

To run in development you can either run it through the umbrella root or in the app repo by doing either `mix phx.server` or `iex -S mix phx.server`

The app offers 2 interfaces, a web UI and a JSON API

## Web UI

You can visit this in [`localhost:4100`](http://localhost:4100) (either `/` or `/configurations`). In there you will be able to do the following
- See all configurations and which one is the default
- See detatils of a specific configuration version
- Create a new configuration, either based on the default one or from another
- Change default configuration

## JSON API
You can visit this in [`localhost:4100`](http://localhost:4100).

The API offers 2 endpoints
In there you will be able to do the following:
- See, create, edit character configurations.

- `/api/default_config` Fetches the default configuration version
- `/configurations/:id` Fetches a specific configuration version
Next steps:
- Do the same for other configurations (game, skills, etc.).
- See all configurations and which one is the default.
- See details of a specific configuration version.
- Create a new configuration, either based on the default one or from another.
- Change default configuration.
104 changes: 0 additions & 104 deletions apps/configurator/lib/configurator/configuration.ex

This file was deleted.

49 changes: 0 additions & 49 deletions apps/configurator/lib/configurator/configuration/character.ex

This file was deleted.

122 changes: 0 additions & 122 deletions apps/configurator/lib/configurator/configure.ex

This file was deleted.

29 changes: 0 additions & 29 deletions apps/configurator/lib/configurator/configure/configuration.ex

This file was deleted.

Loading

0 comments on commit 3ca50ab

Please sign in to comment.