Nesaq / codebattle

Codebattle game

Home Page:https://codebattle.hexlet.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Codebattle

Actions Status codecov Maintainability codebeat badge

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.

Requirements

  • Mac / Linux
  • docker

Install

$ git clone git@github.com: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 dockers.push # all
$ mix dockers.push elixir

$ mix dockers.build # all
$ mix dockers.build elixir

$ mix dockers.pull # all
$ mix dockers.pull elixir

$ mix issues.upload # Upsert issues by name in db

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

Profile js bundle

To build stat.json and see details in browser run:

yarn profile:build
yarn profile:visualize

Support

Troubleshooting

  • Install and run docker

Make sure you have installed docker for your OS.

https://docs.docker.com/install/

Make sure your docker daemon is running. You can run it manually by typing:

sudo dockerd

or you can add it to startup by typing:

sudo systemctl enable docker

Close and open your terminal if docker daemon didn't start immediately.

  • Manage Docker as a non-root user

https://docs.docker.com/install/linux/linux-postinstall/

Create the docker group.

sudo groupadd docker

Add your user to the docker group.

sudo usermod -aG docker $USER

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

https://codebattle.hexlet.io/


Languages

Language:Elixir 51.3%Language:JavaScript 30.9%Language:HTML 11.9%Language:SCSS 1.2%Language:HCL 0.6%Language:Makefile 0.6%Language:C++ 0.5%Language:Haskell 0.4%Language:Dockerfile 0.4%Language:Java 0.3%Language:C# 0.3%Language:Kotlin 0.3%Language:Clojure 0.2%Language:PHP 0.2%Language:Jinja 0.2%Language:Dart 0.2%Language:Python 0.1%Language:Go 0.1%Language:Ruby 0.1%Language:Slim 0.0%Language:Sass 0.0%Language:Shell 0.0%