Server

所属分类:游戏
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2024-03-01 16:55:13
上 传 者sh-1993
说明:  Green Piece MOBA e MMORPG服务器
(Green Piece MOBA e MMORPG Server)

文件列表:
app/
bin/
config/
db/
entrypoints/
lib/
public/
spec/
tmp/
vendor/
.dockerignore
.env
.envtest
.rspec
Dockerfile
Gemfile
Gemfile.lock
Rakefile
config.ru
docker-compose.yml

# Green Piece by VegaSoft :brazil: Set git autocrlf before **cloning the project**. ```console git config --global core.autocrlf true ``` ## Quick Start ```console docker compose up -d --build ``` ## Containers Bash ```console docker compose exec server bash docker compose exec tdd bash ``` ## API Documentation http://localhost:3000/ ## BackgroundJobs Dashboard username: developer password: developer http://localhost:3000/sidekiq ## Generating Serializers [Gem Doc's](https://github.com/rails-api/active_model_serializers/tree/v0.10.6/docs) [Getting Started](https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/general/getting_started.md) [Errors](https://github.com/rails-api/active_model_serializers/blob/v0.10.6/docs/jsonapi/errors.md) ```console docker compose exec server rails g serializer SingularModelName ``` ## Mailer Preview We are using letter_opening gem, so we can preview e-mail beside sending them on a test Visible at 'tmp', 'mailers_preview' ## Green Piece Conventional Docs :recycle: 1. **Ruby** [Official Style Guide](https://rubystyle.guide/) 2. **Rails** [Official Style Guide](https://rails.rubystyle.guide/) 3. **Rubocop** [Documentation](https://docs.rubocop.org/rubocop/) [Usage](https://docs.rubocop.org/rubocop/usage/basic_usage.html) 4. **Rspec** ```console docker compose exec tdd rspec ``` [Boas Práticas](https://www.betterspecs.org) Rspec is composed of multiple libraries [rspec-core](https://rubydoc.info/gems/rspec-core/), [rspec-expectations](https://rubydoc.info/gems/rspec-expectations) e [rspec-mocks](https://rubydoc.info/gems/rspec-mocks) [Documentation](https://relishapp.com/rspec/docs) [let](https://relishapp.com/rspec/rspec-core/docs/helper-methods/let-and-let) 5. **Rspec Rails** [Documentation](https://rubydoc.info/gems/rspec-rails/RSpec/Rails) [Matchers](https://rubydoc.info/gems/rspec-rails/RSpec/Rails/Matchers) * altamente recomendável utilizar requests para testes de controllers no só porque verbos htps estaro disponíveis como também testes específicos de renderizaes de views. 6. **Factories** [Boas Práticas](https://www.betterspecs.org/#factories) [FactoryBot Documentation](https://github.com/thoughtbot/factory_bot/blob/main/GETTING_STARTED.md#defining-factories) [Cheatset](https://devhints.io/factory_bot) 7. **Shoulda Matchers** [Documentation](https://github.com/thoughtbot/shoulda-matchers#usage) 8. **Pundit Matchers** [Documentation](https://github.com/punditcommunity/pundit-matchers#matchers) 9. **Faker** [Documentation](https://www.rubydoc.info/gems/faker/) 10. **CPF/CNPJ Faker** [Documentation](https://github.com/bernardo/cpf_faker#usage) ### Use binding.pry for debugging on development To be able to use pry we have to: ```console docker attach server ``` * Multi location debug in one execution ```console get current_usuario.root_path binding.pry expect(response).to have_http_status(200) ``` ### Docker cheatset ```console docker compose exec server env docker compose exec tdd env ``` ### Rubocop just on modified files through git Adding | xargs rubocop -a ```console git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' git ls-files -m | xargs ls -1 2>/dev/null | grep '\.erb$' git ls-files -m | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs rubocop -a ``` Made with :heart:. Todos os direitos reservados. Green Piece ID:929641795 Copyright Vega Soft :star:.

近期下载者

相关文件


收藏者