Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR] Adding concepts clarification and tutorial #2

Merged
merged 35 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
bfcc1be
feat: Adding payment processing concepts section. #1
LuchoTurtle Dec 21, 2022
b67f406
feat: Adding steps for Stripe account creation. #1
LuchoTurtle Dec 21, 2022
52e8e50
fix: Switching Notion to Crunchyroll. #1
LuchoTurtle Dec 22, 2022
f6b02c4
feat: Initial project commit. #1
LuchoTurtle Dec 22, 2022
e8ba53a
feat: Adding basic auth. #1
LuchoTurtle Dec 22, 2022
5f26dae
fix: Making auth better. Prepping for Stripe. #1
LuchoTurtle Dec 22, 2022
f0a9e6e
feat: Adding Stripe integration. #1
LuchoTurtle Dec 22, 2022
5cc8933
feat: Installing ETS. #1
LuchoTurtle Dec 23, 2022
6f20305
feat: Creating generic UserTable module with ETS. #1
LuchoTurtle Dec 24, 2022
555dbee
fix: Fixing UserTables functions. #1
LuchoTurtle Dec 24, 2022
ab8c2b7
fix: Using Pockets to use DETS instead of ETS. #1
LuchoTurtle Dec 25, 2022
990444e
fix: Fixing table access when file already exists. #1
LuchoTurtle Dec 25, 2022
0bfea37
feat: Adding fetching user to check payment status. #1
LuchoTurtle Dec 26, 2022
fca1a42
feat: Showing button to purchase or enter depending if user has paid …
LuchoTurtle Dec 26, 2022
7902505
feat: Finishing project tutorial. #1
LuchoTurtle Dec 28, 2022
c75aa24
fix: Removing mailer and ecto. #1
LuchoTurtle Dec 28, 2022
584a317
feat: Fixing test and adding UsersTable test. #1
LuchoTurtle Dec 28, 2022
8209fed
feat: Adding tests for app_controller, auth_controller. #1
LuchoTurtle Dec 28, 2022
4b62332
feat: Adding tests to page_controller with mocking Stripe's services. #1
LuchoTurtle Dec 28, 2022
5f9d1cf
feat: Adding tests to CheckoutSessionController. #1
LuchoTurtle Dec 28, 2022
913a217
feat: Adding information about customer_email when creating Stripe Ch…
LuchoTurtle Dec 28, 2022
19a8c47
fix: Linting readme. #1
LuchoTurtle Dec 28, 2022
f268808
fix: Removing Fork example with Postico 2. #1
LuchoTurtle Dec 28, 2022
81d6292
feat: Adding CI. #1
LuchoTurtle Dec 28, 2022
898ffc5
remove superfluous screenshot and fix typos #1
nelsonic Dec 30, 2022
809708b
reduce "What?" section to make intro tighter #1
nelsonic Dec 30, 2022
9c8ad9f
remove .DS_Store
nelsonic Dec 31, 2022
ab4a420
revise Why? section to clarify Why we are writing this doc #1
nelsonic Dec 31, 2022
45ef565
avoid hot-linking to MoR image in README.md #1
nelsonic Jan 1, 2023
ad30c01
add credit/debit cards section to README.md #1
nelsonic Jan 1, 2023
1e9ce4b
move example/tutorial to separte doc #1
nelsonic Jan 2, 2023
b5fff40
create formatter.exs to run mix format
nelsonic Jan 2, 2023
19a50ce
modify order of instructions in example.md for clarity #1
nelsonic Jan 12, 2023
0dfcfe6
remove :ecto from .formatter.exs see: https://github.com/dwyl/learn-p…
nelsonic Jan 12, 2023
bbe6a8f
add brief explanation of why we are using "stripity-stripe" for #4 / #1
nelsonic Jan 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .formatter.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
import_deps: [:phoenix],
plugins: [Phoenix.LiveView.HTMLFormatter],
inputs: [
"*.{heex,ex,exs}",
"priv/*/seeds.exs",
"{config,lib,test}/**/*.{heex,ex,exs}"
],
subdirectories: ["priv/*/migrations"],
line_length: 80
]
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: mix
directory: "/"
schedule:
interval: daily
time: "07:00"
timezone: Europe/London
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['24.3.4']
elixir: ['1.14.1']
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Restore deps and _build cache
uses: actions/cache@v3
with:
path: |
deps
_build
key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}
- name: Install dependencies
run: mix deps.get
- name: Check code is formatted
run: mix format --check-formatted
- name: Run Tests
run: mix coveralls.json
env:
MIX_ENV: test
AUTH_API_KEY: ${{ secrets.AUTH_API_KEY }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,46 @@ jspm_packages

# Optional REPL history
.node_repl_history


# The directory Mix will write compiled artifacts to.
/_build/

# If you run "mix test --cover", coverage assets end up here.
/cover/

# The directory Mix downloads your dependencies sources to.
/deps/

# Where 3rd-party dependencies like ExDoc output generated docs.
/doc/

# Ignore .fetch files in case you like to edit your project deps locally.
/.fetch

# If the VM crashes, it generates a dump, let's ignore it too.
erl_crash.dump

# Also ignore archive artifacts (built via "mix archive.build").
*.ez

# Ignore package tarball (built via "mix hex.build").
app-*.tar

# Ignore assets that are produced by build tools.
/priv/static/assets/

# Ignore digested assets cache.
/priv/static/cache_manifest.json

# In case you use Node.js/npm, you want to ignore these.
npm-debug.log
/assets/node_modules/

# Env files
.env
cache.dets
cache_test.dets

# Noise
.DS_Store
Loading