diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..81ee500 --- /dev/null +++ b/Gemfile @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +# gem "rails" + +gem "sinatra", "~> 4.0" + +gem "puma", "~> 6.4" + +gem "sequel", "~> 5.77" + +gem "mysql2", "~> 0.5.6" + +gem "sqlite3", "~> 1.7" + +gem "erb", "~> 4.0" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..efdc8fe --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,49 @@ +GEM + remote: https://rubygems.org/ + specs: + base64 (0.2.0) + bigdecimal (3.1.6) + cgi (0.4.1) + erb (4.0.4) + cgi (>= 0.3.3) + mini_portile2 (2.8.5) + mustermann (3.0.0) + ruby2_keywords (~> 0.0.1) + mysql2 (0.5.6) + nio4r (2.7.0) + puma (6.4.2) + nio4r (~> 2.0) + rack (3.0.9.1) + rack-protection (4.0.0) + base64 (>= 0.1.0) + rack (>= 3.0.0, < 4) + rack-session (2.0.0) + rack (>= 3.0.0) + ruby2_keywords (0.0.5) + sequel (5.77.0) + bigdecimal + sinatra (4.0.0) + mustermann (~> 3.0) + rack (>= 3.0.0, < 4) + rack-protection (= 4.0.0) + rack-session (>= 2.0.0, < 3) + tilt (~> 2.0) + sqlite3 (1.7.2) + mini_portile2 (~> 2.8.0) + sqlite3 (1.7.2-x86_64-linux) + tilt (2.3.0) + +PLATFORMS + ruby + x86_64-linux + +DEPENDENCIES + erb (~> 4.0) + mysql2 (~> 0.5.6) + puma (~> 6.4) + sequel (~> 5.77) + sinatra (~> 4.0) + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.5.6 diff --git a/app/app.rb b/app/app.rb new file mode 100644 index 0000000..84a3efc --- /dev/null +++ b/app/app.rb @@ -0,0 +1,5 @@ +require 'sinatra' + +get '/' do + 'Hello, Simply Billing!' +end diff --git a/app/assets/images/admin/admin_favicon.ico b/app/assets/images/admin/admin_favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/index/index_favicon.ico b/app/assets/images/index/index_favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/shop/category_images/placeholder.png b/app/assets/images/shop/category_images/placeholder.png new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/shop/item_images/placeholder.png b/app/assets/images/shop/item_images/placeholder.png new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/images/shop/shop_favicon.ico b/app/assets/images/shop/shop_favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/admin/admin.js b/app/assets/scripts/admin/admin.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/index/index.js b/app/assets/scripts/index/index.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/category_scripts/category_1.js b/app/assets/scripts/shop/category_scripts/category_1.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/category_scripts/category_2.js b/app/assets/scripts/shop/category_scripts/category_2.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/product_scripts/product_1.js b/app/assets/scripts/shop/product_scripts/product_1.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/product_scripts/product_2.js b/app/assets/scripts/shop/product_scripts/product_2.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/scripts/shop/shop.js b/app/assets/scripts/shop/shop.js new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/admin/admin.css b/app/assets/styles/admin/admin.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/index/index.css b/app/assets/styles/index/index.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/category_styles/category_1.css b/app/assets/styles/shop/category_styles/category_1.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/category_styles/category_2.css b/app/assets/styles/shop/category_styles/category_2.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/product_styles/product_1.css b/app/assets/styles/shop/product_styles/product_1.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/product_styles/product_2.css b/app/assets/styles/shop/product_styles/product_2.css new file mode 100644 index 0000000..e69de29 diff --git a/app/assets/styles/shop/shop.css b/app/assets/styles/shop/shop.css new file mode 100644 index 0000000..e69de29 diff --git a/app/partials/_admin_backend_settings.html.erb b/app/partials/_admin_backend_settings.html.erb new file mode 100644 index 0000000..0ed2657 --- /dev/null +++ b/app/partials/_admin_backend_settings.html.erb @@ -0,0 +1,23 @@ +