Twitter Clone - Team One
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
public
spec/models
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru
docker-compose.yml
dockerfile
start.sh

README.md

rails rails ruby Codeship Status for edsonbatista/twitter-clone-teamone

Weekend Code - Twitter Clone - Team One

This app has the purpose of being a twitter clone, reproducing new features and serving as a study for the OneBitCode BootCamp.

Our technologies

Home Screen

Click and open the project

twitter-clone-teamone

Contributing to this project

1. Fork the project

2. Clone the fork to your machine

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

3. Set the remote upstream from original repository

cd into/cloned/fork-repo
git remote add upstream git@github.com:edsonbatista/twitter-clone-teamone.git
git fetch upstream

4. Submitting Pull Requests:

  • work on your local branch and submit it to your fork master.

  • Create a PR from your branch to the original repository.

5. Syncing a fork

Follow the steps in this link

Initial setup

At first, you need to setup some configurations after clonning the repo to your local machine.

Setup in your machine

As we use docker, we have a docker-compose.yml for it.

The database.yml as default is configured as below:

default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  host: postgres
  user: postgres

development:
  <<: *default
  database: twitter-clone-teamone_development

test:
  <<: *default
  database: twitter-clone-teamone_test

production:
  <<: *default
  database: twitter-clone-teamone_production
  username: twitter-clone-teamone
  password: <%= ENV['TWITTER-CLONE-TEAMONE_DATABASE_PASSWORD'] %>

To get everything up and running with docker-compose, follow the steps below:

1. docker-compose build
2. docker-compose run --rm website bundle install
3. docker-compose run --rm website bundle exec rails db:create
4. docker-compose run --rm website bundle exec rails db:migrate
5. docker-compose run --rm website bundle exec rails db:seed
5. docker-compose up