Hack2Save-Team8
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
log
public
spec
tmp
vendor
.env.sample
.gitignore
.rspec
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
docker-compose.yml
package.json

README.md

HACK2SAVE@Team8

Requirements:

Clone the repository

First, clone the repository: $ git clone https://github.com/dfmoreto/hack2save-team8.git

then cd into hack2save-team8 $ cd hack2save-team8

Set Rails configs

Set the sample configs for rails: $ cp .env.sample .env $ cp config/database-sample.yml config/database.yml

Set docker container

Pull and build docker containers for project: $ docker-compose build $ docker-compose run web rails db:create db:migrate db:seed

Set Facebook keys

Ask for permission on facebook dev app. After granting access, open the .env file inside your favorite editor and set Facebook_APP_ID and Facebook_Secret_ID.

Start Docker container

Then start the container: $ docker-compose up

Then navigate with your browser to localhost:3000, login with

username: john.doe@mail.com
password: '123456'

and have some fun!

To enter the container environment: $ docker-compose run web bash

Remember that all the files created inside the container will belong to root.

FAQ

Some files generated by Rails inside container may require changing permission access to edit. This can be bypassed with:

// Please use the command below with CAUTION, since it will change the ownership
of everything inside your current folder RECURSIVELY.

$ sudo chown -R <your_username> .