This is demo web application for howitzer_example
Ruby HTML CSS CoffeeScript Other
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.
.circleci
app
bin
config
db
lib
public
spec
vendor/assets
.byebug_history
.dockerignore
.env.docker
.env.example
.gitignore
.rubocop.yml
.ruby-gemset
.ruby-version
Capfile
Dockerfile
Dockerfile.prod
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
docker-compose.production.yml
docker-compose.yml
env.test

README.md

Simple demo web application

CircleCI

Installation

bin/setup
bin/rails s

Known issues

If bundle install raise the error:

`mri_21` is not a valid platform. The available options are: [:ruby, :ruby_18,
:ruby_19, :ruby_20, :mri, :mri_18, :mri_19, :mri_20, :rbx, :jruby, :mswin,
:mingw, :mingw_18, :mingw_19, :mingw_20]

Then update bundler:

gem update bundler

Run development environment locally on docker

docker-compose build
docker-compose run --rm web rake db:create db:migrate db:seed
docker-compose up

Run production environment locally on docker

docker-compose -f docker-compose.production.yml build
docker-compose -f docker-compose.production.yml up

Useful commands:

docker-compose -f docker-compose.production.yml exec web rake db:create db:migrate db:seed
docker-compose -f docker-compose.production.yml exec web rake assets:precompile
docker-compose -f docker-compose.production.yml stop

DEMO SERVER

http://demoapp.strongqa.com

Default admin email: admin@strongqa.com
Default password: 1234567890

Note: all test data, except 3 test articles and 5 demo users are cleaning up every day at 00:00 UTC

API

curl 'http://demoapp.strongqa.com/api/v1/articles' -H 'Authorization: Token token="97f85fa997125c758a67213c44e1c0543a603f3819b31456b9"'