Skip to content

Commit 7ed34c6

Browse files
committed
Fully-automate development setup with Gitpod
Signed-off-by: Geoffrey Huntley <[email protected]>
0 parents  commit 7ed34c6

File tree

97 files changed

+8744
-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.

97 files changed

+8744
-0
lines changed

.browserslistrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaults

.gitattributes

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See https://git-scm.com/docs/gitattributes for more about git attribute files.
2+
3+
# Mark the database schema as having been generated.
4+
db/schema.rb linguist-generated
5+
6+
# Mark the yarn lockfile as having been generated.
7+
yarn.lock linguist-generated
8+
9+
# Mark any vendored files as having been vendored.
10+
vendor/* linguist-vendored

.gitignore

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-*
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*
16+
/tmp/*
17+
!/log/.keep
18+
!/tmp/.keep
19+
20+
# Ignore pidfiles, but keep the directory.
21+
/tmp/pids/*
22+
!/tmp/pids/
23+
!/tmp/pids/.keep
24+
25+
# Ignore uploaded files in development.
26+
/storage/*
27+
!/storage/.keep
28+
29+
/public/assets
30+
.byebug_history
31+
32+
# Ignore master key for decrypting credentials and more.
33+
/config/master.key
34+
35+
/public/packs
36+
/public/packs-test
37+
/node_modules
38+
/yarn-error.log
39+
yarn-debug.log*
40+
.yarn-integrity

.gitpod.Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM gitpod/workspace-postgres
2+
USER gitpod
3+
4+
# Install the Ruby version specified in '.ruby-version'
5+
COPY --chown=gitpod:gitpod .ruby-version /tmp
6+
RUN echo "rvm_gems_path=/home/gitpod/.rvm" > ~/.rvmrc
7+
RUN bash -lc "rvm reinstall ruby-$(cat /tmp/.ruby-version) && rvm use ruby-$(cat /tmp/.ruby-version) --default && gem install rails"
8+
RUN echo "rvm_gems_path=/workspace/.rvm" > ~/.rvmrc

.gitpod.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
4+
ports:
5+
# Rails server
6+
- port: 3000
7+
onOpen: open-preview
8+
# PostgreSQL server
9+
- port: 5432
10+
onOpen: ignore
11+
12+
tasks:
13+
- init: >
14+
bundle install &&
15+
yarn install &&
16+
rake db:create
17+
command: >
18+
rails server -b 0.0.0.0
19+
20+
vscode:
21+
extensions:
22+
- rebornix.ruby

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.7.3

CONTRIBUTING.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Hacking on the project in Gitpod
2+
3+
If you have a web browser, you can get a fully pre-configured development environment in one click:
4+
5+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://gitpod.io/from-referrer/)

Gemfile

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
source 'https://rubygems.org'
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3+
4+
ruby '2.7.3'
5+
6+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
7+
gem 'rails', '~> 6.1.3', '>= 6.1.3.2'
8+
# Use sqlite3 as the database for Active Record
9+
gem 'pg', '~> 1.2.3'
10+
# Optionally sqlite3 as the database for Active Record
11+
gem 'sqlite3', '~> 1.4'
12+
# Use Puma as the app server
13+
gem 'puma', '~> 5.0'
14+
# Use SCSS for stylesheets
15+
gem 'sass-rails', '>= 6'
16+
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
17+
gem 'webpacker', '~> 5.0'
18+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
19+
gem 'turbolinks', '~> 5'
20+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
21+
gem 'jbuilder', '~> 2.7'
22+
# Use Redis adapter to run Action Cable in production
23+
# gem 'redis', '~> 4.0'
24+
# Use Active Model has_secure_password
25+
# gem 'bcrypt', '~> 3.1.7'
26+
27+
# Use Active Storage variant
28+
# gem 'image_processing', '~> 1.2'
29+
30+
# Reduces boot times through caching; required in config/boot.rb
31+
gem 'bootsnap', '>= 1.4.4', require: false
32+
33+
group :development, :test do
34+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
35+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
36+
end
37+
38+
group :development do
39+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
40+
gem 'web-console', '>= 4.1.0'
41+
# Display performance information such as SQL time and flame graphs for each request in your browser.
42+
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
43+
gem 'rack-mini-profiler', '~> 2.0'
44+
gem 'listen', '~> 3.3'
45+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
46+
gem 'spring'
47+
end
48+
49+
group :test do
50+
# Adds support for Capybara system testing and selenium driver
51+
gem 'capybara', '>= 3.26'
52+
gem 'selenium-webdriver'
53+
# Easy installation and use of web drivers to run system tests with browsers
54+
gem 'webdrivers'
55+
end
56+
57+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
58+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+232
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
actioncable (6.1.3.2)
5+
actionpack (= 6.1.3.2)
6+
activesupport (= 6.1.3.2)
7+
nio4r (~> 2.0)
8+
websocket-driver (>= 0.6.1)
9+
actionmailbox (6.1.3.2)
10+
actionpack (= 6.1.3.2)
11+
activejob (= 6.1.3.2)
12+
activerecord (= 6.1.3.2)
13+
activestorage (= 6.1.3.2)
14+
activesupport (= 6.1.3.2)
15+
mail (>= 2.7.1)
16+
actionmailer (6.1.3.2)
17+
actionpack (= 6.1.3.2)
18+
actionview (= 6.1.3.2)
19+
activejob (= 6.1.3.2)
20+
activesupport (= 6.1.3.2)
21+
mail (~> 2.5, >= 2.5.4)
22+
rails-dom-testing (~> 2.0)
23+
actionpack (6.1.3.2)
24+
actionview (= 6.1.3.2)
25+
activesupport (= 6.1.3.2)
26+
rack (~> 2.0, >= 2.0.9)
27+
rack-test (>= 0.6.3)
28+
rails-dom-testing (~> 2.0)
29+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
30+
actiontext (6.1.3.2)
31+
actionpack (= 6.1.3.2)
32+
activerecord (= 6.1.3.2)
33+
activestorage (= 6.1.3.2)
34+
activesupport (= 6.1.3.2)
35+
nokogiri (>= 1.8.5)
36+
actionview (6.1.3.2)
37+
activesupport (= 6.1.3.2)
38+
builder (~> 3.1)
39+
erubi (~> 1.4)
40+
rails-dom-testing (~> 2.0)
41+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
42+
activejob (6.1.3.2)
43+
activesupport (= 6.1.3.2)
44+
globalid (>= 0.3.6)
45+
activemodel (6.1.3.2)
46+
activesupport (= 6.1.3.2)
47+
activerecord (6.1.3.2)
48+
activemodel (= 6.1.3.2)
49+
activesupport (= 6.1.3.2)
50+
activestorage (6.1.3.2)
51+
actionpack (= 6.1.3.2)
52+
activejob (= 6.1.3.2)
53+
activerecord (= 6.1.3.2)
54+
activesupport (= 6.1.3.2)
55+
marcel (~> 1.0.0)
56+
mini_mime (~> 1.0.2)
57+
activesupport (6.1.3.2)
58+
concurrent-ruby (~> 1.0, >= 1.0.2)
59+
i18n (>= 1.6, < 2)
60+
minitest (>= 5.1)
61+
tzinfo (~> 2.0)
62+
zeitwerk (~> 2.3)
63+
addressable (2.7.0)
64+
public_suffix (>= 2.0.2, < 5.0)
65+
bindex (0.8.1)
66+
bootsnap (1.7.5)
67+
msgpack (~> 1.0)
68+
builder (3.2.4)
69+
byebug (11.1.3)
70+
capybara (3.35.3)
71+
addressable
72+
mini_mime (>= 0.1.3)
73+
nokogiri (~> 1.8)
74+
rack (>= 1.6.0)
75+
rack-test (>= 0.6.3)
76+
regexp_parser (>= 1.5, < 3.0)
77+
xpath (~> 3.2)
78+
childprocess (3.0.0)
79+
concurrent-ruby (1.1.9)
80+
crass (1.0.6)
81+
erubi (1.10.0)
82+
ffi (1.15.1)
83+
globalid (0.4.2)
84+
activesupport (>= 4.2.0)
85+
i18n (1.8.10)
86+
concurrent-ruby (~> 1.0)
87+
jbuilder (2.11.2)
88+
activesupport (>= 5.0.0)
89+
listen (3.5.1)
90+
rb-fsevent (~> 0.10, >= 0.10.3)
91+
rb-inotify (~> 0.9, >= 0.9.10)
92+
loofah (2.10.0)
93+
crass (~> 1.0.2)
94+
nokogiri (>= 1.5.9)
95+
mail (2.7.1)
96+
mini_mime (>= 0.1.1)
97+
marcel (1.0.1)
98+
method_source (1.0.0)
99+
mini_mime (1.0.3)
100+
mini_portile2 (2.5.3)
101+
minitest (5.14.4)
102+
msgpack (1.4.2)
103+
nio4r (2.5.7)
104+
nokogiri (1.11.7)
105+
mini_portile2 (~> 2.5.0)
106+
racc (~> 1.4)
107+
nokogiri (1.11.7-x86_64-linux)
108+
racc (~> 1.4)
109+
pg (1.2.3)
110+
public_suffix (4.0.6)
111+
puma (5.3.2)
112+
nio4r (~> 2.0)
113+
racc (1.5.2)
114+
rack (2.2.3)
115+
rack-mini-profiler (2.3.2)
116+
rack (>= 1.2.0)
117+
rack-proxy (0.7.0)
118+
rack
119+
rack-test (1.1.0)
120+
rack (>= 1.0, < 3)
121+
rails (6.1.3.2)
122+
actioncable (= 6.1.3.2)
123+
actionmailbox (= 6.1.3.2)
124+
actionmailer (= 6.1.3.2)
125+
actionpack (= 6.1.3.2)
126+
actiontext (= 6.1.3.2)
127+
actionview (= 6.1.3.2)
128+
activejob (= 6.1.3.2)
129+
activemodel (= 6.1.3.2)
130+
activerecord (= 6.1.3.2)
131+
activestorage (= 6.1.3.2)
132+
activesupport (= 6.1.3.2)
133+
bundler (>= 1.15.0)
134+
railties (= 6.1.3.2)
135+
sprockets-rails (>= 2.0.0)
136+
rails-dom-testing (2.0.3)
137+
activesupport (>= 4.2.0)
138+
nokogiri (>= 1.6)
139+
rails-html-sanitizer (1.3.0)
140+
loofah (~> 2.3)
141+
railties (6.1.3.2)
142+
actionpack (= 6.1.3.2)
143+
activesupport (= 6.1.3.2)
144+
method_source
145+
rake (>= 0.8.7)
146+
thor (~> 1.0)
147+
rake (13.0.3)
148+
rb-fsevent (0.11.0)
149+
rb-inotify (0.10.1)
150+
ffi (~> 1.0)
151+
regexp_parser (2.1.1)
152+
rubyzip (2.3.0)
153+
sass-rails (6.0.0)
154+
sassc-rails (~> 2.1, >= 2.1.1)
155+
sassc (2.4.0)
156+
ffi (~> 1.9)
157+
sassc-rails (2.1.2)
158+
railties (>= 4.0.0)
159+
sassc (>= 2.0)
160+
sprockets (> 3.0)
161+
sprockets-rails
162+
tilt
163+
selenium-webdriver (3.142.7)
164+
childprocess (>= 0.5, < 4.0)
165+
rubyzip (>= 1.2.2)
166+
semantic_range (3.0.0)
167+
spring (2.1.1)
168+
sprockets (4.0.2)
169+
concurrent-ruby (~> 1.0)
170+
rack (> 1, < 3)
171+
sprockets-rails (3.2.2)
172+
actionpack (>= 4.0)
173+
activesupport (>= 4.0)
174+
sprockets (>= 3.0.0)
175+
sqlite3 (1.4.2)
176+
thor (1.1.0)
177+
tilt (2.0.10)
178+
turbolinks (5.2.1)
179+
turbolinks-source (~> 5.2)
180+
turbolinks-source (5.2.0)
181+
tzinfo (2.0.4)
182+
concurrent-ruby (~> 1.0)
183+
web-console (4.1.0)
184+
actionview (>= 6.0.0)
185+
activemodel (>= 6.0.0)
186+
bindex (>= 0.4.0)
187+
railties (>= 6.0.0)
188+
webdrivers (4.6.0)
189+
nokogiri (~> 1.6)
190+
rubyzip (>= 1.3.0)
191+
selenium-webdriver (>= 3.0, < 4.0)
192+
webpacker (5.4.0)
193+
activesupport (>= 5.2)
194+
rack-proxy (>= 0.6.1)
195+
railties (>= 5.2)
196+
semantic_range (>= 2.3.0)
197+
websocket-driver (0.7.4)
198+
websocket-extensions (>= 0.1.0)
199+
websocket-extensions (0.1.5)
200+
xpath (3.2.0)
201+
nokogiri (~> 1.8)
202+
zeitwerk (2.4.2)
203+
204+
PLATFORMS
205+
ruby
206+
x86_64-linux
207+
208+
DEPENDENCIES
209+
bootsnap (>= 1.4.4)
210+
byebug
211+
capybara (>= 3.26)
212+
jbuilder (~> 2.7)
213+
listen (~> 3.3)
214+
pg (~> 1.2.3)
215+
puma (~> 5.0)
216+
rack-mini-profiler (~> 2.0)
217+
rails (~> 6.1.3, >= 6.1.3.2)
218+
sass-rails (>= 6)
219+
selenium-webdriver
220+
spring
221+
sqlite3 (~> 1.4)
222+
turbolinks (~> 5)
223+
tzinfo-data
224+
web-console (>= 4.1.0)
225+
webdrivers
226+
webpacker (~> 5.0)
227+
228+
RUBY VERSION
229+
ruby 2.7.3p183
230+
231+
BUNDLED WITH
232+
2.2.17

0 commit comments

Comments
 (0)