Skip to content
No description, website, or topics provided.
Ruby HTML CSS JavaScript Dockerfile
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
cable
config
db
lib
log
public
storage
test
vendor/assets
'
.dockerignore
.env.template
.gitignore
.rubocop.yml
Dockerfile
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
docker-compose.yml

README.md

Crowd Checked Backend

This is the repo for the backend of the Crowd Checked application. You can find the Chrome Extension repo here.

Overview

Crowd Checked is a site where users can leave embedded comments within articles. Users can highlight sections within articles and leave a comment. Other users will then see that highlighted section and can view the comment and reply.

Running

  1. Clone the repo.

  2. Duplicate the env file template and fill in the missing values at the bottom

    cp .development.env .env
    
  3. Create the docker network

    $ docker network create nginx-proxy
    
  4. Build and run the docker containers

    $ docker-compose build
    $ docker-compose up
    
  5. In a separate terminal create the database

    $ docker-compose exec --user "$(id -u):$(id -g)" website rails db:reset
    $ docker-compose exec --user "$(id -u):$(id -g)" website rails db:migrate
    
  6. Visit the site at localhost:3002. Depending on your docker setup, you might have to find the IP address of the docker machine instead.

You can’t perform that action at this time.