generated from appdev-projects/rails-7-template
-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit adb1de5
Showing
102 changed files
with
2,656 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/universal | ||
{ | ||
"name": "Container", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "jelaniwoods/appdev2023-rails-template", | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
"forwardPorts": [3000, 4567, 9292], | ||
|
||
"portsAttributes": { | ||
"3000": { | ||
"onAutoForward": "silent" | ||
}, | ||
"4567": { | ||
"onAutoForward": "silent" | ||
}, | ||
"9292": { | ||
"onAutoForward": "silent" | ||
} | ||
}, | ||
|
||
"otherPortsAttributes": {"onAutoForward": "ignore"}, | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "bin/setup", | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["vortizhe.simple-ruby-erb", | ||
"mbessey.vscode-rufo", | ||
"aliariff.vscode-erb-beautify", | ||
"eamodio.gitlens"] | ||
} | ||
} | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
attributes: | ||
- content | ||
- foreign_key | ||
- inheritance | ||
disconnected: true | ||
filename: erd | ||
filetype: png | ||
indirect: true | ||
inheritance: false | ||
markup: true | ||
notation: bachman | ||
orientation: vertical | ||
polymorphism: false | ||
sort: true | ||
warn: false | ||
title: false | ||
exclude: ActiveRecord::InternalMetadata,ActiveRecord::SchemaMigration,ActiveStorage::Attachment,ActiveStorage::Blob,AdminUser,ActiveAdmin::Comment,primary::SchemaMigration | ||
only: null | ||
only_recursion_depth: null | ||
prepend_primary: false | ||
cluster: false | ||
splines: spline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# See https://git-scm.com/docs/gitattributes for more about git attribute files. | ||
|
||
# Mark the database schema as having been generated. | ||
db/schema.rb linguist-generated | ||
|
||
# Mark any vendored files as having been vendored. | ||
vendor/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# See https://help.github.com/articles/ignoring-files for more about ignoring files. | ||
# | ||
# If you find yourself ignoring temporary files generated by your text editor | ||
# or operating system, you probably want to add a global ignore instead: | ||
# git config --global core.excludesfile '~/.gitignore_global' | ||
|
||
# Ignore bundler config. | ||
/.bundle | ||
|
||
# Ignore all logfiles and tempfiles. | ||
/log/* | ||
/tmp/* | ||
!/log/.keep | ||
!/tmp/.keep | ||
|
||
# Ignore pidfiles, but keep the directory. | ||
/tmp/pids/* | ||
!/tmp/pids/ | ||
!/tmp/pids/.keep | ||
|
||
# Ignore uploaded files in development. | ||
/storage/* | ||
!/storage/.keep | ||
/tmp/storage/* | ||
!/tmp/storage/ | ||
!/tmp/storage/.keep | ||
|
||
/public/assets | ||
|
||
# Ignore master key for decrypting credentials and more. | ||
/config/master.key | ||
# AppDev files | ||
core.chrome* | ||
examples.txt | ||
.vscode/.ltici_apitoken.yml | ||
|
||
# Ignore dotenv files | ||
/.env* | ||
|
||
# Un-ignore SQLite3 db | ||
!/db/*.sqlite3 | ||
!/db/*.sqlite3-journal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
image: jelaniwoods/appdev2023-rails-template | ||
|
||
tasks: | ||
- env: | ||
DATABASE_URL: "postgresql://gitpod@localhost" | ||
before: | | ||
sudo echo 'export DATABASE_URL="postgresql://gitpod@localhost"' | sudo tee -a ~/.bashrc | ||
sudo cp -r /home/student /home/gitpod && sudo chmod 777 /home/gitpod && chown -R gitpod /home/gitpod | ||
export GEM_HOME=/workspace/.rvm | ||
export GEM_PATH=$GEM_HOME:$GEM_PATH | ||
export PATH=/workspace/.rvm/bin:$PATH | ||
bin/setup | ||
ports: | ||
- port: 3000 | ||
onOpen: open-preview | ||
visibility: public | ||
- port: 4567 | ||
onOpen: open-preview | ||
visibility: public | ||
- port: 9292 | ||
onOpen: open-preview | ||
visibility: public | ||
- port: 5432 | ||
onOpen: ignore | ||
|
||
vscode: | ||
extensions: | ||
- vortizhe.simple-ruby-erb | ||
- mbessey.vscode-rufo | ||
- aliariff.vscode-erb-beautify | ||
- eamodio.gitlens |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Pry.config.print = proc do |output, value, _pry_| | ||
case value | ||
when ActiveRecord::Relation | ||
output.puts "=> #{value.to_s}" | ||
else | ||
Pry::ColorPrinter.default(output, value, _pry_) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--color | ||
--format documentation | ||
--order default | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruby-3.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.acceptSuggestionOnEnter": "off", | ||
"editor.bracketPairColorization.enabled": false, | ||
"editor.cursorSurroundingLines": 4, | ||
"editor.dragAndDrop": false, | ||
"editor.guides.bracketPairs": true, | ||
"editor.linkedEditing": true, | ||
"editor.minimap.enabled": false, | ||
"editor.smoothScrolling": false, | ||
"editor.wordBasedSuggestionsMode": "allDocuments", | ||
"editor.wordWrap": "on", | ||
"editor.wrappingIndent": "deepIndent", | ||
"workbench.editor.closeOnFileDelete": true, | ||
"workbench.fontAliasing": "auto", | ||
"workbench.startupEditor": "none", | ||
"workbench.tree.renderIndentGuides": "always", | ||
"files.autoSaveDelay": 500, | ||
"files.exclude": { | ||
"**/.git": true, | ||
".vscode": true, | ||
".bundle": true, | ||
".gitignore": false, | ||
".gitpod.yml": false, | ||
".rspec": false, | ||
".devcontainer/": false, | ||
"config.ru": false, | ||
"Dockerfile": false, | ||
"Gemfile": false, | ||
"Gemfile.lock": false, | ||
"tmp/": false, | ||
"install-packages": false, | ||
"main.rb": false, | ||
"README.md": false, | ||
"app.rb": false, | ||
"environment.rb": false, | ||
"bin/": false, | ||
"spec/": false, | ||
"examples.txt": false, | ||
"config/": false | ||
}, | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"screencastMode.onlyKeyboardShortcuts": true, | ||
"screencastMode.verticalOffset": 10, | ||
"explorer.compactFolders": false, | ||
"explorer.incrementalNaming": "smart", | ||
"html.format.endWithNewline": true, | ||
"html.format.preserveNewLines": true, | ||
"html.format.templating": true, | ||
"terminal.integrated.altClickMovesCursor": true, | ||
"vscode-erb-beautify.keepBlankLines": 1, | ||
"ruby.intellisense": false, | ||
"gitpod.openInStable.neverPrompt": true, | ||
"gitlens.showWelcomeOnInstall": false, | ||
"gitlens.currentLine.enabled": false, | ||
"redhat.telemetry.enabled": false, | ||
"emmet.includeLanguages": { | ||
"erb": "html" | ||
}, | ||
"[ruby]": { | ||
"editor.defaultFormatter": "mbessey.vscode-rufo", | ||
"editor.formatOnSave": false | ||
}, | ||
"[erb]": { | ||
"editor.defaultFormatter": "aliariff.vscode-erb-beautify", | ||
"editor.formatOnSave": false | ||
}, | ||
"files.associations": { | ||
"*.html.erb": "erb" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
source "https://rubygems.org" | ||
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | ||
|
||
ruby "3.2.1" | ||
|
||
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" | ||
gem "rails", "~> 7.0.4", ">= 7.0.4.3" | ||
|
||
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails] | ||
gem "sprockets-rails" | ||
|
||
# Use postgresql as the database for Active Record | ||
gem "pg", "~> 1.1" | ||
|
||
# Use the Puma web server [https://github.com/puma/puma] | ||
gem "puma", "~> 5.0" | ||
|
||
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails] | ||
gem "importmap-rails" | ||
|
||
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev] | ||
gem "turbo-rails" | ||
|
||
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev] | ||
gem "stimulus-rails" | ||
|
||
# Build JSON APIs with ease [https://github.com/rails/jbuilder] | ||
gem "jbuilder" | ||
|
||
# Use Redis adapter to run Action Cable in production | ||
gem "redis", "~> 4.0" | ||
|
||
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis] | ||
# gem "kredis" | ||
|
||
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword] | ||
# gem "bcrypt", "~> 3.1.7" | ||
|
||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem | ||
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ] | ||
|
||
# Reduces boot times through caching; required in config/boot.rb | ||
gem "bootsnap", require: false | ||
|
||
# Use Sass to process CSS | ||
# gem "sassc-rails" | ||
|
||
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images] | ||
# gem "image_processing", "~> 1.2" | ||
|
||
group :development, :test do | ||
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem | ||
gem "debug", platforms: %i[ mri mingw x64_mingw ] | ||
end | ||
|
||
group :development do | ||
# Use console on exceptions pages [https://github.com/rails/web-console] | ||
gem "web-console" | ||
|
||
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler] | ||
# gem "rack-mini-profiler" | ||
|
||
# Speed up commands on slow machines / big apps [https://github.com/rails/spring] | ||
# gem "spring" | ||
end | ||
|
||
group :test do | ||
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing] | ||
gem "capybara" | ||
gem "selenium-webdriver" | ||
gem "webdrivers" | ||
end | ||
|
||
# AppDev Gems | ||
# =========== | ||
gem "appdev_support" | ||
gem "awesome_print" | ||
gem "devise" # to be removed | ||
gem "dotenv-rails" | ||
gem "faker" | ||
gem "htmlbeautifier" | ||
gem "http" | ||
gem "sqlite3", "~> 1.4" | ||
gem "table_print" | ||
|
||
group :development do | ||
gem "annotate" | ||
gem "better_errors" | ||
gem "binding_of_caller" | ||
gem "draft_generators" | ||
gem "grade_runner" | ||
gem "pry-rails" | ||
gem "rails_db" | ||
gem "rails-erd" | ||
gem "rufo" | ||
gem "specs_to_readme" | ||
gem "web_git" | ||
end | ||
|
||
group :development, :test do | ||
gem "rspec-rails", "~> 6.0.0" | ||
end | ||
|
||
group :test do | ||
gem "draft_matchers"#, "0.0.2"#path: "../../my_stuff/draft_matchers" | ||
# gem "draft_matchers" | ||
gem "rspec-html-matchers" | ||
gem "webmock" | ||
end |
Oops, something went wrong.