Skip to content

Commit 2b676d8

Browse files
MyConnectWebhook DocuSign sample app
0 parents  commit 2b676d8

File tree

201 files changed

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

201 files changed

+9778
-0
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
WS_CONNECTION_URL=ws://localhost:28080/cable

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
},
6+
extends: ["plugin:react/recommended", "airbnb", "prettier"],
7+
parserOptions: {
8+
ecmaFeatures: {
9+
jsx: true,
10+
},
11+
ecmaVersion: "latest",
12+
sourceType: "module",
13+
},
14+
plugins: ["react"],
15+
rules: {
16+
"react/jsx-filename-extension": ["off"],
17+
"import/prefer-default-export": ["off"],
18+
"import/no-unresolved": ["error", { ignore: ["env"] }],
19+
},
20+
};

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 any vendored files as having been vendored.
7+
vendor/* linguist-vendored

.gitignore

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
/tmp/storage/*
29+
!/tmp/storage/
30+
!/tmp/storage/.keep
31+
32+
/public/assets
33+
34+
# Ignore master key for decrypting credentials and more.
35+
/config/master.key
36+
37+
/app/assets/builds/*
38+
!/app/assets/builds/.keep
39+
40+
/node_modules
41+
42+
/.idea/
43+
44+
# Ignore macOS utility files
45+
.DS_Store
46+
47+
# private key files
48+
*.key
49+
*.pem
50+
appsettings.yml
51+
config/docusign_private_key.txt
52+
53+
/config/credentials/production.key
54+
55+
/config/credentials/development.key

.rubocop.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# The behavior of RuboCop can be controlled via the .rubocop.yml
2+
# configuration file. It makes it possible to enable/disable
3+
# certain cops (checks) and to alter their behavior if they accept
4+
# any parameters. The file can be placed either in your home
5+
# directory or in some project directory.
6+
#
7+
# RuboCop will start looking for the configuration file in the directory
8+
# where the inspected file is and continue its way up to the root directory.
9+
#
10+
# See https://docs.rubocop.org/rubocop/configuration
11+
12+
require:
13+
- rubocop-rails
14+
15+
AllCops:
16+
NewCops: enable
17+
18+
Style/StringLiterals:
19+
EnforcedStyle: double_quotes
20+
21+
Style/Documentation:
22+
Exclude:
23+
- db/migrate/*
24+
25+
Metrics/BlockLength:
26+
Exclude:
27+
- lib/tasks/auto_annotate_models.rake
28+
- config/routes.rb
29+
30+
Metrics/AbcSize:
31+
Max: 20
32+
Exclude:
33+
- db/migrate/*
34+
35+
Metrics/MethodLength:
36+
Max: 20
37+
Exclude:
38+
- db/migrate/*
39+
40+
Layout/LineLength:
41+
Max: 130

.ruby-gemset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sample-app-my-connect

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-3.1.2

Dockerfile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM ruby:latest
2+
3+
# ENV BUNDLER_VERSION=2.0.2
4+
5+
RUN apt-get update -qq \
6+
&& apt-get install -y nodejs
7+
8+
RUN apt remove cmdtest
9+
RUN apt remove yarn
10+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
11+
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
12+
RUN apt-get update -qq
13+
RUN apt install yarn -y
14+
RUN apt install npm -y
15+
RUN apt install postgresql-client -y
16+
RUN gem install bundler
17+
RUN apt-get install -y dos2unix
18+
19+
WORKDIR /app
20+
21+
COPY package.json yarn.lock Gemfile Gemfile.lock ./
22+
23+
RUN npm install -g sass
24+
RUN npm install -g esbuild
25+
RUN npm install pm2 -g
26+
RUN yarn install
27+
28+
COPY . .
29+
30+
RUN chmod +x ./entrypoints/docker-entrypoint-web.sh
31+
RUN chmod +x ./entrypoints/docker-entrypoint-web-local.sh
32+
RUN chmod +x ./entrypoints/docker-entrypoint-websocket.sh
33+
34+
# convert file line endings to unix format
35+
RUN dos2unix ./entrypoints/docker-entrypoint-web.sh
36+
RUN dos2unix ./entrypoints/docker-entrypoint-web-local.sh
37+
RUN dos2unix ./entrypoints/docker-entrypoint-websocket.sh
38+
39+
#remove dos2unix utility
40+
RUN apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/*
41+
42+
RUN bundle check || bundle install
43+
44+
# RUN bundle exec rake assets:precompile
45+
# CMD ["sh", "/app/entrypoints/docker-entrypoint-web.sh"]
46+
CMD ["bash"]
47+
# CMD ["rails", "server", "-b", "0.0.0.0"]

Gemfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5+
6+
ruby "3.1.2"
7+
gem "annotate"
8+
gem "bootsnap", require: false
9+
gem "cssbundling-rails"
10+
gem "jsbundling-rails"
11+
gem "pg"
12+
gem "puma", "~> 5.0"
13+
gem "rails", "~> 7.0.3"
14+
gem "redis", "~> 4.0"
15+
gem "sprockets-rails"
16+
gem "stimulus-rails"
17+
gem "turbo-rails"
18+
gem "yaml"
19+
gem 'psych', '< 4'
20+
21+
group :development do
22+
# gem "hotwire-livereload", "~> 1.1"
23+
gem "web-console"
24+
25+
gem "rubocop"
26+
gem "rubocop-rails"
27+
end
28+
29+
gem "docusign_click", "~> 1.1.0"
30+
gem "docusign_esign", "~> 3.18.0"
31+
gem "omniauth-oauth2", "~> 1.8.0"
32+
33+
gem "tzinfo-data", platforms: %i[mingw mswin x64_mingw jruby]

0 commit comments

Comments
 (0)