cd ~/Developer
# delete any previous version of the messenger repo
rm -fr messenger
# clone the messenger git repo
git clone https://github.com/huguesbr/ufr-blois-development-web-messenger.git messenger
cd messenger
# install any dependencies
bundle install --path="vendor/bundle"
# reset the database to a clean state
bin/rake db:migrate:reset
# populate some dummy data in our database
bin/rake db:seed
# launch rails server
bin/rails server
Test that your setup is working by navigating to http://localhost:3000
- launch Postman (Accessories / Postman)
- import
~/Developer/messenger/Messenger.postman_collection.json
(File > import)
bin/rails console
> User.all
> app.get '/chats'
bin/rails dbconsole
> select * from users
tail -f log/development.log