Skip to content

Discover Amazing Stories, Ruby on Rails, Turbo Stream, Stimulus.js, PostgreSQL, Redis, Tailwindcss, FlyonUI

License

Notifications You must be signed in to change notification settings

gilcierweb/literary-pad

Repository files navigation

LiteraryPad

Discover Amazing Stories, Ruby on Rails, Turbo Stream, Stimulus.js, PostgreSQL, Redis, Tailwindcss, Flyonui.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

App Nuxt

Skills

Install Ruby and Ruby on Rails

https://gorails.com/setup/ubuntu/22.04

Run app

cd myapp

./bin/dev
#Run in http://localhost:3000 

Run app with Docker and Docker Compose

cd myapp

docker-compose build
docker-compose up # run http://localhost:3000
 
docker-compose up --build # run http://localhost:3000

# Optional
docker-compose ps
docker-compose stop
docker-compose down
docker-compose run --rm app rails db:create
docker-compose run --rm app rails db:setup db:migrate 
docker-compose run --rm app rails db:migrate 
docker-compose run --rm app rails db:seed 
docker-compose run --rm app rails console
docker-compose run --rm app rails rspec
docker-compose run --rm app rails rubocop
docker-compose run --rm app bash
docker-compose run --rm app bundle install
docker-compose run --rm app yarn install --check-files 

# run http://localhost:3000

Test for checks Ruby on Rails applications for security vulnerabilities with brakeman gem

brakeman
brakeman --help
brakeman -o tmp/output_analysis.html
open tmp/output_analysis.html # open browser

Run all specs in spec directory (excluding plugin specs). Run tests with rspec

rake spec # or
rails spec

Code Coverage With SimpleCov Gem

In a Debian/Ubuntu Terminal you can use this command:

open coverage/index.html

In a Mac terminal, you can use this command:

xdg-open coverage/index.html

Report code statistics (KLOCs, etc) from the application or engine

rake stats # or
rails stats

https://gilcierweb.com.br

About

Discover Amazing Stories, Ruby on Rails, Turbo Stream, Stimulus.js, PostgreSQL, Redis, Tailwindcss, FlyonUI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •