Skip to content

ravensears/Weeks-8-and-9-Acebook-Five-Aces

 
 

Repository files navigation

Heroku URL: Acebook

REQUIRED INSTRUCTIONS:

  1. Fork this repository to five-aces and customize the below**

You can find the engineering project outline here.

  1. The card wall is here: https://trello.com/b/ezLGgoKk/acebook-five-aces

How to contribute to this project

See CONTRIBUTING.md

Quickstart

First, clone this repository. Then:

> 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:3000

Troubleshooting

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

CI/CD process - commands

git fetch https://github.com/ravensears/acebook-five-aces.git git branch -a git checkout U4_test_CI_CD git fetch git checkout U4_test_CI_CD

Github Actions - This is part of CI/CD automation

After merging files into the main repo, go to this link: https://github.com/ravensears/acebook-five-aces/actions and wait until the tick changes from orange to green. You can click on the process name i.e. 'Merge pull request #2' to see any issues or errors.

Dropping users table after getting duplicate user error

\c pgapp_test \d DROP TABLE users;

\c pgapp_development \d DROP TABLE users;

About

Template for the AceBook project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 81.8%
  • Ruby 17.2%
  • Other 1.0%