From fbdb027fe92b873f4848a8dabb268645e69b19e1 Mon Sep 17 00:00:00 2001 From: Dakota1958 Date: Mon, 8 Feb 2021 18:43:57 +0000 Subject: [PATCH 1/2] Fully automate dev setup with Gitpod This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click. --- .gitpod.yml | 2 ++ Gemfile.lock | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 97 insertions(+) create mode 100644 .gitpod.yml create mode 100644 Gemfile.lock diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 000000000..21452b337 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,2 @@ +tasks: + - init: bundle install diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..10cf99f33 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,93 @@ +GEM + remote: https://rubygems.org/ + specs: + activemodel (4.2.11.3) + activesupport (= 4.2.11.3) + builder (~> 3.1) + activerecord (4.2.11.3) + activemodel (= 4.2.11.3) + activesupport (= 4.2.11.3) + arel (~> 6.0) + activesupport (4.2.11.3) + i18n (~> 0.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + arel (6.0.4) + bond (0.5.1) + builder (3.2.4) + coderay (1.1.3) + concurrent-ruby (1.1.8) + i18n (0.9.5) + concurrent-ruby (~> 1.0) + method_source (1.0.0) + minitest (5.14.3) + multi_json (1.15.0) + mustermann (1.1.1) + ruby2_keywords (~> 0.0.1) + nio4r (2.5.5) + pry (0.13.1) + coderay (~> 1.1) + method_source (~> 1.0) + puma (5.2.1) + nio4r (~> 2.0) + rack (2.2.3) + rack-protection (2.1.0) + rack + rack-test (0.6.3) + rack (>= 1.0) + rake (13.0.3) + ripl (0.7.1) + bond (~> 0.5.1) + ripl-multi_line (0.3.1) + ripl (>= 0.3.6) + ripl-rack (0.2.1) + rack (>= 1.0) + rack-test (~> 0.6.2) + ripl (>= 0.7.0) + ruby2_keywords (0.0.4) + shotgun (0.9.2) + rack (>= 1.0) + sinatra (2.1.0) + mustermann (~> 1.0) + rack (~> 2.2) + rack-protection (= 2.1.0) + tilt (~> 2.0) + sinatra-activerecord (2.0.22) + activerecord (>= 4.1) + sinatra (>= 1.0) + sinatra-contrib (2.1.0) + multi_json + mustermann (~> 1.0) + rack-protection (= 2.1.0) + sinatra (= 2.1.0) + tilt (~> 2.0) + sqlite3 (1.3.13) + thread_safe (0.3.6) + tilt (2.0.10) + tux (0.3.0) + ripl (>= 0.3.5) + ripl-multi_line (>= 0.2.4) + ripl-rack (>= 0.2.0) + sinatra (>= 1.2.1) + tzinfo (1.2.9) + thread_safe (~> 0.1) + +PLATFORMS + x86_64-linux + +DEPENDENCIES + activerecord (~> 4.2.0) + activesupport + pry + puma + rake + shotgun + sinatra + sinatra-activerecord + sinatra-contrib + sqlite3 (~> 1.3.6) + tux + +BUNDLED WITH + 2.2.8 diff --git a/README.md b/README.md index 2577b6932..d1371d6d9 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/lighthouse-labs/finstagram) + # finstagram From a8d808ba417c124d5ed917e32665d7907d39becc Mon Sep 17 00:00:00 2001 From: Dakota1958 Date: Tue, 9 Feb 2021 01:51:43 +0000 Subject: [PATCH 2/2] week1 to week2 --- Gemfile.lock | 1 + app/actions.rb | 3 ++ app/views/index.html | 86 ++++++++++++++++++++++++++++++++++++++ public/stylesheets/app.css | 12 ++++++ 4 files changed, 102 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index 10cf99f33..fa485fa54 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -74,6 +74,7 @@ GEM thread_safe (~> 0.1) PLATFORMS + ruby x86_64-linux DEPENDENCIES diff --git a/app/actions.rb b/app/actions.rb index e69de29bb..cdcb9991f 100755 --- a/app/actions.rb +++ b/app/actions.rb @@ -0,0 +1,3 @@ +get '/' do + File.read(File.join('app/views', 'index.html')) +end \ No newline at end of file diff --git a/app/views/index.html b/app/views/index.html index e69de29bb..bdb12cce4 100644 --- a/app/views/index.html +++ b/app/views/index.html @@ -0,0 +1,86 @@ + + + + + + + + + + Finstagram + +
+

Finstagram

+
+ + + +
+ + +
+
+ sharky_j +

sharky_j

+

15 minutes ago

+
+ + post from sharky_j + +
+ 0 likes + 0 comments +
+
    +
  • +

    + sharky_j: Out for the long weekend... too embarrassed to show y'all the beach bod! +

    +
  • +
+
+
+
+ kirk_whalum +

kirk_whalum

+

1 hour ago

+
+ + finstagram post from kirk_whalum + +
+ 0 likes + 0 comments +
+
    +
  • +

    + kirk_whalum: #weekendvibes +

    +
  • +
+
+ +
+
+ marlin_peppa +

marlin_peppa

+

3 hours ago

+
+ + finstagram post from marlin_peppa + +
+ 0 likes + 0 comments +
+
    +
  • +

    + marlin_peppa: lunchtime! +

    +
  • +
+
+ + \ No newline at end of file diff --git a/public/stylesheets/app.css b/public/stylesheets/app.css index e69de29bb..f16382041 100755 --- a/public/stylesheets/app.css +++ b/public/stylesheets/app.css @@ -0,0 +1,12 @@ +header { + background-color: #244751; + color: #E8FDFF; +} +body { + background-color: whitesmoke; +} + +main { + background-color: white; + padding: 16px; +} \ No newline at end of file