Quick chat consists of a messaging app similar to slack,that allows real-time chat.
- Action Cable
- Materialize
- Redis
- Devise
- Postgresql
- Rspec(TDD)
- Coverage
- RubyCritic
- Attractor
- Channels: Permit to create a new channel and send to general message.
- Users: Permit to send private message to user.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You must have installed on your machine:
- Docker
- Docker Compose
First step is to install the docker service:
#Linux: ubuntu,Mint
$ sudo apt-get update
$ sudo apt-get install docker-ce
$ sudo apt install docker-compose
# Fedora
$ sudo dnf update -y
$ sudo dnf install docker-ce
$ sudo dnf -y install docker-composeFor test if the service was installed with succeed, you can run the command for to check de version of docker:
$ docker --version
#Must be have the docker version: Docker version 18.06.0-ce
$ docker-compose --version
#Must be have the docker-compose version: docker-compose version 1.22.0Follow the instructions to have a project present and able to run it locally. After copying the repository to your machine, go to the project's root site and:
- Construct the container
docker-compose build
- Create of Database
docker-compose run --rm app bundle exec rails db:create
- Without turning off the server, open a new window and run the migrations
docker-compose run --rm app bundle exec rails db:migrate #if necessary populate database
- Run the project
docker-compose up - d
To run the tests, you must run the docker container through the command:
docker-compose run --rm app bundle exec rspec
To Verify the quality report of your Ruby code, you must run the docker container through the command:
docker-compose run --rm app bundle exec rubycritic
To Verify a code complexity metrics visualization and exploration tool, you must run the docker container through the command:
docker-compose run --rm app bundle exec attractor report
