Skip to content

Codebattle - Game for programmers, where you solved algorithmic problems with other players in real time. You can fight with other players in single player mode or join massive tournaments.

Notifications You must be signed in to change notification settings

hexlet-codebattle/codebattle

Repository files navigation

Codebattle

Actions Status codecov Maintainability codebeat badge Hits

Codebattle - is an open source game being developed by the Hexlet community. The current version of the application is available at codebattle.hexlet.io. We also have chrome extension. Which allow to subscribe on last game updates.

This project exists thanks to all the people who contribute. Contribute guideline.

Alt

Requirements

  • Mac / Linux
  • Docker

Install

$ git clone [email protected]:hexlet-codebattle/codebattle.git
$ cd codebattle
$ make setup

Start Server

$ make compose

Run Tests

$ make compose-test

Lint

$ make compose-lint

# To run specific
$ make compose-mix-format
$ make compose-mix-credo
$ make compose-lint-js-fix

Useful

$ mix upload_langs

$ mix images.push # all
$ mix images.push elixir

$ mix images.build # all
$ mix images.build elixir

$ mix images.pull # all
$ mix images.pull elixir

$ mix asserts.upload # Pulls from battle_asserts all issues and upserts into DB

#If you use images in dev env, run commands in make compose-bash

Profile js bundle

Support

Troubleshooting

macOS

  • Install Docker

Make sure you have installed Docker Desktop for macOS.

brew install --cask docker

Or download Docker Desktop directly from: https://www.docker.com/products/docker-desktop

  • Start Docker Desktop

Launch Docker Desktop from your Applications folder. The Docker icon will appear in your menu bar when it's running.

If you encounter issues, try restarting Docker Desktop from the menu bar icon or your Applications folder.

Docker Desktop will start automatically on boot by default. You can change this in Docker Desktop preferences if needed.

Linux

  • Install Docker

Make sure you have installed Docker Engine for your Linux distribution.

Follow the official installation guide: https://docs.docker.com/engine/install/

  • Start Docker service

Make sure Docker is running. You can start the Docker service manually by typing:

sudo systemctl start docker

or you can add it to startup by typing:

sudo systemctl enable docker
  • Add your user to the docker group

To run Docker without sudo, add your user to the docker group:

sudo usermod -aG docker $USER

Then log out and log back in for the changes to take effect, or run:

newgrp docker

Star History

Star History Chart


Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

See most active contributors on hexlet-friends.

About

Codebattle - Game for programmers, where you solved algorithmic problems with other players in real time. You can fight with other players in single player mode or join massive tournaments.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 134