Facebook implementation built on Ruby on Rails.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
This project runs on Ruby, and Rails
After installation, run ruby -v
to make sure Ruby installed correctly. Example
$ ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin17]
Also make sure that Rails is installed, but running rails -v
.
Example
$ rails -v
Rails 5.1.6
Run bundle install
to install all project dependencies.
Run the server with the following command:
rails s
Once its running, head over to your browser to see Fakebook.
To run the project tests, run the following command:
rspec -f D
You can deploy the project on Heroku using the following steps:
- Create a Heroku Account
- On the terminal, run
heroku create
to create a new app - Run
heroku push
to start a deployment on Heroku. - Run
heroku migrate
to run migrations on your production database. - Visit your project URL as assigned by Heroku to see a live deployment of Fakebook.
Build the project
$ docker-compose build
Create the database:
$ docker-compose run --rm web bin/rails db:create
Run the migrations:
$ docker-compose run --rm web bin/rails db:migrate
Run the app:
$ docker-compose up -d
- Kevin Wahome - talihomz
- Sava Vuckovic - savavuckovic
This project is licensed under the MIT License - see the LICENSE.md file for details