Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.92 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.92 KB

Final Project

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.

Earthdiary

Authors

Installation

  1. Install PostgreSQL. Follow that link or that one
  2. 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
  3. Connect to the adminstration console through su - postgres and then psql
  4. Create a new role called microverse_ror_final_project with password microverse using create role microverse_ror_final_project with createdb login password 'microverse';
  5. Run bundle install
  6. Run rails db:setup
  7. Run rails s
  8. Open your browser and go to http://localhost:3000

Testing

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 and xvfb-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.

Live demo

The project is hosted on heroku. So go there and have fun. (https://earthdiary.herokuapp.com)