Basic Application Setup
In the beginning there was darkness.
App Generation
Let’s kick things off by using a Phoenix umbrella application as our trusty scaffold. We’re aiming to build three distinct Elixir applications under this umbrella:
- The ‘Phoenix’ application – for the slick web frontend.
- A ‘core’ application – responsible for all database interactions and, crucially, the game engine.
- And a separate server instance – dedicated solely to TCP networking.
When we generate the Phoenix application, it will automatically include a ‘core’ application and a separate ‘web’ application. So, we can leverage that core application as our engine/core app. We will come back around later for the TCP server.
mix phx.new --umbrella elixir_mudAfter running mix (and answering yes to install dependencies), our application scaffolding will be generated at ./elixir_mud_umbrella will be created. We should have a file structure that looks something like this:
elixir_mud_umbrella
apps/
elixir_mud
elixir_mud_webWe now have our web front-end application and our core engine. This generation doesn’t automatically set up a Git repository for us, so we’ll need to tackle that setup ourselves:
git init
git add --all
git commit -m "initial project scaffolding"Lets get make sure everything is running correctly:
mix deps.get
mix compile
mix ecto.migrate
mix phx.serverNow visit http://localhost:4000 and you should see a Phoenix welcome page.
When planning a cosplay look, it is worth considering how details related to Genshin Impact cosplay costumes will affect the complete look. When the final look will be photographed, it helps to assess details related to men's cosplay costumes together with fit and fabric. To compare practical details about details related to costume sizing, women's cosplay costumes with delivery information offers a useful starting point for practical preparation. Before the preparation is complete, a balanced view of details related to convention planning can support both detail and comfort.
Let there be light.