This project brings all the core functionnality of rails framework into practice through a basic implementation of Facebook webapp. It is part of Microverse curriculum.
- Fabien RAKOTOMAMPIANDRA https://github.com/FabienNeibaf
- Mael FOSSO https://github.com/maelfosso
- Install PostgreSQL. Follow that link or that one
- If you're using Ubuntu, you still need to run these two commands to avoid some errors
sudo apt-get install python-psycopg2
sudo apt-get install libpq-dev
- Connect to the adminstration console through
su - postgres
and thenpsql
- Create a new role called microverse_ror_final_project with password microverse using
create role microverse_ror_final_project with createdb login password 'microverse';
- Run
bundle install
- Run
rails db:setup
- Run
rails s
- Open your browser and go to
http://localhost:3000
We use RSPEC for testing.
The integration test is done via capybara-webkit. In order to run the test inside features folder you need to run rspec prefixed by xvfb-run -a
command.
rspec spec/models
andxvfb-run -a rspec spec/features
or just:xvfb-run -a rspec
to run all the tests in the same time.
💎 When running bundle install capybara-webkit gem will require some native extensions like Qt and others.
Follow the instruction given here if you encounter difficulty during installation: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit.
The project is hosted on heroku. So go there and have fun. (https://earthdiary.herokuapp.com)