DEV Community

Cover image for Initializing the project
Diego Novais
Diego Novais

Posted on • Edited on

4

Initializing the project

About the Project

Now that we know how the game works, let's create the project and some initial settings.

Creating the project

To create the project, we can run the command:

mix new rock_paper_scissor_elixir --module Game
Enter fullscreen mode Exit fullscreen mode

We can specify the main module name of our project by passing --module NameOfTheModule. And own main module will call Game.

  • Adding the test coverage tool As a good practice, we'll create our project with the maximum test coverage. And now we'll add the library test coverage tool: coveralls.
# /mix.exs
#...
  defp deps do
    [
      {:excoveralls, "~> 0.10", only: :test}
    ]
  end
#...
Enter fullscreen mode Exit fullscreen mode
  • Adding the static code analysis tool Now we'll add the lib Credo, a static code analysis tool for the Elixir language focused on helping us maintain the code's quality and consistency.
# /mix.exs
#...
  defp deps do
    [
      {:excoveralls, "~> 0.10", only: :test},
      {:credo, "~> 1.6", only: [:dev, :test], runtime: false}
    ]
  end
#...
Enter fullscreen mode Exit fullscreen mode

And then, we need to install the dependencies running this command:

mix deps.get
Enter fullscreen mode Exit fullscreen mode

In the next post, we'll build the tests.

Contacts

Email: contato@diegonovais.com.br
Linkedin: https://www.linkedin.com/in/diegonovais/
Twitter: https://twitter.com/diegonovaistech

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more