Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
google start
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusGautamah committed Jan 20, 2023
1 parent 1a05872 commit 582b4c1
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .env → .env_sample
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ CONTRACTS_LIMIT=2
SIGNATURES_LIMIT=5
REDIS_URL=redis://redis:6379
ENV_MACHINE=docker
GOOGLE_ANALYTICS_ID=UA-XXXXXXXX-X
FIRESTORE_PROJECT_ID=YOUR_FIRESTORE_PROJECT_ID
FIRESTORE_KEY_FILE=YOUR_FIRESTORE_KEY_FILE
FIRESTORE_KEY_FILE_PATH=YOUR_FIRESTORE_KEY_FILE_PATH

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@
/.vscode/*
/coverage
/coverage/*
osbc-*.gem
osbc-*.gem
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ gem "rails-controller-testing", "~> 1.0"
# Active Record Import
gem "activerecord-import"

# Google Firestore
gem "google-cloud-firestore", "~> 2.6"


# Use Sass to process CSS
# gem "sassc-rails"
Expand Down
61 changes: 61 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,57 @@ GEM
railties (>= 5.0.0)
faker (2.23.0)
i18n (>= 1.8.11, < 2)
faraday (2.7.4)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
faraday-retry (2.0.0)
faraday (~> 2.0)
gapic-common (0.16.0)
faraday (>= 1.9, < 3.a)
faraday-retry (>= 1.0, < 3.a)
google-protobuf (~> 3.14)
googleapis-common-protos (>= 1.3.12, < 2.a)
googleapis-common-protos-types (>= 1.3.1, < 2.a)
googleauth (~> 1.0)
grpc (~> 1.36)
globalid (1.0.1)
activesupport (>= 5.0)
google-cloud-core (1.6.0)
google-cloud-env (~> 1.0)
google-cloud-errors (~> 1.0)
google-cloud-env (1.6.0)
faraday (>= 0.17.3, < 3.0)
google-cloud-errors (1.3.0)
google-cloud-firestore (2.8.0)
concurrent-ruby (~> 1.0)
google-cloud-core (~> 1.5)
google-cloud-firestore-v1 (~> 0.0)
rbtree (~> 0.4.2)
google-cloud-firestore-v1 (0.8.0)
gapic-common (>= 0.10, < 2.a)
google-cloud-errors (~> 1.0)
google-cloud-location (>= 0.0, < 2.a)
google-cloud-location (0.3.0)
gapic-common (>= 0.16.0, < 2.a)
google-cloud-errors (~> 1.0)
google-protobuf (3.21.12)
googleapis-common-protos (1.4.0)
google-protobuf (~> 3.14)
googleapis-common-protos-types (~> 1.2)
grpc (~> 1.27)
googleapis-common-protos-types (1.5.0)
google-protobuf (~> 3.14)
googleauth (1.3.0)
faraday (>= 0.17.3, < 3.a)
jwt (>= 1.4, < 3.0)
memoist (~> 0.16)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
grpc (1.50.0)
google-protobuf (~> 3.21)
googleapis-common-protos-types (~> 1.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
importmap-rails (1.1.5)
Expand All @@ -121,6 +170,7 @@ GEM
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
json (2.6.3)
jwt (2.6.0)
loofah (2.19.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
Expand All @@ -131,10 +181,12 @@ GEM
net-smtp
marcel (1.0.2)
matrix (0.4.2)
memoist (0.16.2)
method_source (1.0.0)
mini_mime (1.1.2)
minitest (5.17.0)
msgpack (1.6.0)
multi_json (1.15.0)
net-imap (0.3.4)
date
net-protocol
Expand All @@ -148,6 +200,7 @@ GEM
nokogiri (1.14.0-x86_64-linux)
racc (~> 1.4)
orm_adapter (0.5.0)
os (1.1.4)
parallel (1.22.1)
parser (3.2.0.0)
ast (~> 2.4.1)
Expand Down Expand Up @@ -191,6 +244,7 @@ GEM
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
rbtree (0.4.6)
redis (4.8.0)
regexp_parser (2.6.2)
responders (3.0.1)
Expand Down Expand Up @@ -236,6 +290,7 @@ GEM
rubocop (~> 1.33)
rubocop-capybara (~> 2.17)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
selenium-webdriver (4.7.1)
rexml (~> 3.2, >= 3.2.5)
Expand All @@ -247,6 +302,11 @@ GEM
connection_pool (>= 2.2.5, < 3)
rack (~> 2.0)
redis (>= 4.5.0, < 5)
signet (0.17.0)
addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a)
jwt (>= 1.5, < 3.0)
multi_json (~> 1.10)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand Down Expand Up @@ -313,6 +373,7 @@ DEPENDENCIES
devise (~> 4.8)
factory_bot_rails (~> 6.2)
faker (~> 2.23)
google-cloud-firestore (~> 2.6)
importmap-rails (~> 1.1)
jbuilder (~> 2.11)
pg (~> 1.4)
Expand Down
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,16 @@
### A Ruby implementation of web blockchain framework.
#### Developed using TDD (Test Driven Development).
#### Github Actions CI/CD pipeline.
#### Chrome Selenium tests are used to test the blockchain in a browser and its interaction with the blockchain.
#### Chrome Selenium are included in the docker compose without any additional setup.
#### Firestore

#### Simplecov is used to test code coverage.

#### Rails Engine is used to create the blockchain.
#### Tailwind CSS is used to style the blockchain web interface.

#### Rspec is used to test the blockchain.

## Build Version: 0.1.9
### Last Update:
#### Edited Gemspec
#### Edited Readme
##### TODO
###### Add more tests
###### Add more features
###### Include pagination
###### Create Queries Folder
###### Test in kubernetes
###### Add more documentation
###### Add NFT Generator
###### Increase the environment variables for autoconfig
###### Add features to autogeneration of blockchain for better configuration
## Build Version: 0.2.0

## System dependencies
1. Docker
Expand Down
9 changes: 9 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= ENV['GOOGLE_ANALYTICS_ID'] %>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', <%= ENV['GOOGLE_ANALYTICS_ID'] %>);
</script>
<title>OuterspaceBlockchain</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
Expand Down

0 comments on commit 582b4c1

Please sign in to comment.