Try at Acebook
You can find the engineering project outline here.
- The card wall is available in the projects tab of this gitrepo
See CONTRIBUTING.md
- Ruby on Rails
- Css/Boostrap for styling
- Javascript (including vanilla Javascript)
- Rspec-rails for unit testing
- Capybara for feature testing
- Posgres SQL for database for ActiveRecord
- ActiveStorage for image storage
- Act_as_votable for likes
- Heroku for deployment
- AWS S3 for storage in production
- Travis for continuous integration
- Rubocop for linting
First, clone this repository.
- You may have to type
$ rvm use '2.7.0'to implement the right version of ruby
Then:
> bundle update
> bundle install
> bin/rails db:create
> bin/rails db:migrate
> bundle exec rspec # Run the tests to ensure it works
> bin/rails server # Start the server at localhost:3000visit localhost:3000/posts in your browser
- Sign in to create a user account.
- Add a photo by clicking Post button.
- Comment, like or post something with or without an image
- See the other’s posts, comments, likes, profiles
- Navigate to your profile page using the profile link provided in the nav bar and edit/update your details.
If you don't have Node.js installed yet, you might run into this error when running rspec:
ExecJS::RuntimeUnavailable:
Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
That is because Rails will use a Javascript runtime (such as Node) under the hood. The easiest way is to install Node by running brew install node -
and then run bundle exec rspec again