This is a project made with Star Wars SWAPI API!
The setups steps expect following tools installed on the system.
- Git
- Ruby 3.0.2
- Rails 6.1.4.1
- PostgreSQL
- Clone this the repository:
$ git clone git@github.com:CaioFML/star_wars_swapi.git
- Go to the folder and bundle install:
$ cd star_wars_swapi
$ bundle install
- Run yarn:
$ yarn
- Create and setup the database:
$ rails db:setup
$ rails db:migrate
- Running tests:
$ rails db:test:prepare
$ bundle exec rspec
The coverage of tests can be verified opening: ./coverage/index.html
- Running rubocop:
$ bundle exec rubocop
6.Running reek:
$ bundle exec reek
- Import all content from SWAPI API to populate database:
$ rails import_star_wars_data:all
- Run server and webpacker:
$ rails s
$ bin/webpack-dev-server