- Users must be able to create an account providing a valid email address.
- Once logged in users must be able to send and receive messages.
- It has only one channel/room and all the users subscribed will have access to the only available channel
The system sends to all the users a weekly emails: (see apps/jobs/weekly_stats_job.rb)
- how many messages were sent and received in the last week
- the total number of messages received since the user has sent his last message
- Install ruby 2.7.1
gem install bundlerbundle installcp .env .env.developmentbundle exec rails db:create RAILS_ENV=developmentbundle exec rails db:migrate RAILS_ENV=developmentrails server
- redis-server (redis-server must be runing on the default redis port to run sidekiq)
You need to run 3 processes
rails server./bin/webpack-dev-serverbundle exec sidekiq
- mailcatcher
cp .env .env.testbundle exec rails db:create RAILS_ENV=testbundle exec rails db:migrate RAILS_ENV=test
bundle exec rspecbundle exec rubocop