Skip to content

jurassic-period/codebattle

 
 

Repository files navigation

Codebattle

Actions Status codecov Maintainability codebeat badge

Кодбатл - это игра с открытым исходным кодом, которая разрабатывается сообществом Хекслета. Текущая версия приложения доступна по адресу codebattle.hexlet.io.

Requirements

  • Mac / Linux
  • docker
  • docker-compose

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 and docker-compose for your OS.

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

https://docs.docker.com/compose/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

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 64.4%
  • JavaScript 23.3%
  • HTML 5.4%
  • Makefile 1.0%
  • CSS 0.8%
  • Dockerfile 0.8%
  • Other 4.3%