Skip to content

A Facebook-like social network. Users can create, like, and comment on posts. Users can also add/remove friends, and receive notifications for updates.

Notifications You must be signed in to change notification settings

FabienNeibaf/microverse_ror_final_project

 
 

Repository files navigation

Final Project

A Facebook-like social network. Users can create, like, and comment on posts. Users can also add/remove friends, and receive notifications for updates.

Earthdiary

Technologies

  • Ruby on Rails
  • Javascript
  • JQuery
  • PostgreSQL

🔌 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)

✏️ Contribute

Feel free to contact me if you want to contribute.

Authors

Follow me

About

A Facebook-like social network. Users can create, like, and comment on posts. Users can also add/remove friends, and receive notifications for updates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 56.1%
  • HTML 19.1%
  • CSS 17.0%
  • JavaScript 4.7%
  • CoffeeScript 3.1%