This project is an importer of contacts by uploading csv files!
This project is deployed on heroku and can be accessed from the url: https://contact-importer-koombea-test.herokuapp.com/
The credentials for test is the same of the step 9.
The setup steps expect following tools installed on the system.
- Git
- Ruby 3.0.0
- Rails 6.1.4.1
- PostgreSQL
- Clone this the repository:
$ git clone [email protected]:CaioFML/contact-importer.git
- Go to the folder and bundle install:
$ cd contact-importer
$ bundle install
- Run yarn:
$ yarn
- Create, setup and generate seeds in the database:
$ rails db:setup
$ rails db:migrate
- Running tests:
$ rails db:test:prepare
$ bundle exec rspec
The tests was made with the best practices write in BetterSpecs
The coverage of tests can be verified opening: ./coverage/index.html
- Running rubocop:
$ bundle exec rubocop
- Run server, webpacker-dev-server (to compile the assets) and sidekiq (use different tabs of console for each command):
$ rails s
$ bin/webpack-dev-server
$ sidekiq
-
A user with email:
[email protected]
and password:123456
is created in the database. -
Use the csv files stored on
spec/fixture/files/**
as tests for upload on project.