Skip to content

Commit f2a7d28

Browse files
author
pbmolini
committed
Initial commit with some gems. Auth with devise and Commoner first implementation
0 parents  commit f2a7d28

File tree

126 files changed

+2728
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+2728
-0
lines changed

.dockerignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.git*
2+
db/*.sqlite3
3+
db/*.sqlite3-journal
4+
log/*
5+
tmp/*
6+
Dockerfile
7+
README.md

.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
/node_modules
17+
/yarn-error.log
18+
19+
.byebug_history

Dockerfile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM ruby:2.4
2+
3+
4+
# Install apt based dependencies required to run Rails as
5+
# well as RubyGems. As the Ruby image itself is based on a
6+
# Debian image, we use apt-get to install those.
7+
RUN apt-get update && apt-get install -y \
8+
build-essential \
9+
nodejs
10+
11+
# Configure the main working directory. This is the base
12+
# directory used in any further RUN, COPY, and ENTRYPOINT
13+
# commands.
14+
RUN mkdir -p /app
15+
WORKDIR /app
16+
17+
# Copy the Gemfile as well as the Gemfile.lock and install
18+
# the RubyGems. This is a separate step so the dependencies
19+
# will be cached unless changes to one of those two files
20+
# are made.
21+
COPY Gemfile Gemfile.lock ./
22+
RUN gem install bundler && bundle install --jobs 20 --retry 5
23+
24+
# Copy the main application.
25+
COPY . ./
26+
27+
# Expose port 3000 to the Docker host, so we can access it
28+
# from the outside.
29+
EXPOSE 3000
30+
31+
# Configure an entry point, so we don't need to specify
32+
# "bundle exec" for each of our commands.
33+
ENTRYPOINT ["bundle", "exec"]
34+
35+
# The main command to run when the container starts. Also
36+
# tell the Rails dev server to bind to all interfaces by
37+
# default.
38+
CMD ["rails", "server", "-b", "0.0.0.0"]

Gemfile

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
source 'https://rubygems.org'
2+
3+
git_source(:github) do |repo_name|
4+
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5+
"https://github.com/#{repo_name}.git"
6+
end
7+
8+
9+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10+
gem 'rails', '~> 5.1.3'
11+
# Use postgresql as the database for Active Record
12+
gem 'pg', '~> 0.18'
13+
# Use Puma as the app server
14+
gem 'puma', '~> 3.7'
15+
# Use SCSS for stylesheets
16+
gem 'sass-rails', '~> 5.0'
17+
# Use Uglifier as compressor for JavaScript assets
18+
gem 'uglifier', '>= 1.3.0'
19+
# See https://github.com/rails/execjs#readme for more supported runtimes
20+
# gem 'therubyracer', platforms: :ruby
21+
22+
# Use CoffeeScript for .coffee assets and views
23+
gem 'coffee-rails', '~> 4.2'
24+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
25+
gem 'turbolinks', '~> 5'
26+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
27+
gem 'jbuilder', '~> 2.5'
28+
# Use Redis adapter to run Action Cable in production
29+
# gem 'redis', '~> 3.0'
30+
# Use ActiveModel has_secure_password
31+
# gem 'bcrypt', '~> 3.1.7'
32+
33+
# Use Capistrano for deployment
34+
# gem 'capistrano-rails', group: :development
35+
36+
# Frontend
37+
gem 'bootstrap', '~> 4.0.0.beta'
38+
gem 'jquery-rails'
39+
40+
# Forms
41+
gem 'simple_form'
42+
43+
# Auth
44+
gem 'cancancan'
45+
gem 'devise'
46+
gem 'devise-i18n'
47+
48+
# Localization
49+
gem 'gettext_i18n_rails'
50+
gem 'gettext_i18n_rails_js', '~> 1.0.0'
51+
# From branch master to work with Rails 5
52+
gem 'globalize', git: 'https://github.com/globalize/globalize'
53+
gem 'activemodel-serializers-xml' # needed by globalize
54+
55+
# Nice logs
56+
gem 'lograge'
57+
58+
group :development, :test do
59+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
60+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
61+
# Adds support for Capybara system testing and selenium driver
62+
gem 'capybara', '~> 2.13'
63+
gem 'selenium-webdriver'
64+
# Nice debug
65+
gem 'pry-rails'
66+
end
67+
68+
group :development do
69+
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
70+
gem 'web-console', '>= 3.3.0'
71+
gem 'listen', '>= 3.0.5', '< 3.2'
72+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
73+
gem 'spring'
74+
gem 'spring-watcher-listen', '~> 2.0.0'
75+
end
76+
77+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
78+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

0 commit comments

Comments
 (0)