Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhaeberle committed Dec 2, 2022
1 parent 763c911 commit 5145727
Show file tree
Hide file tree
Showing 562 changed files with 36,793 additions and 17,329 deletions.
14 changes: 14 additions & 0 deletions .babelrc.jest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Necessary to make Jest work with TypeScript
module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current",
},
},
],
"@babel/preset-typescript",
],
};
3 changes: 0 additions & 3 deletions .commitlintrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
npm-debug.log
10 changes: 0 additions & 10 deletions .editorconfig

This file was deleted.

86 changes: 51 additions & 35 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,40 +1,56 @@
# -----------------------------------------------------------------------------
# App
# -----------------------------------------------------------------------------
NEXT_PUBLIC_APP_URL=http://localhost:3000
# Choose any random string for these env variables
# NOTE: In production, make sure they're really long, each unique and unguessable
MAGIC_LINK_SECRET=fake
COOKIE_SECRET=fake
INVITATION_TOKEN_SECRET=fake
API_TOKEN_SECRET=fake

# -----------------------------------------------------------------------------
# Authentication (NextAuth.js)
# -----------------------------------------------------------------------------
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=
# Get these from the Stripe dashboard
STRIPE_SECRET_API_KEY=fake
STRIPE_PRO_PLAN_PRICE_ID=fake
NEXT_PUBLIC_STRIPE_PUBLIC_API_KEY=fake

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=
GITHUB_ACCESS_TOKEN=
# Get the webhook endpoint secret from the Stripe CLI (started when running "docker-compose up")
STRIPE_WEBHOOK_ENDPOINT_SECRET=fake

# -----------------------------------------------------------------------------
# Database (MySQL - PlanetScale)
# -----------------------------------------------------------------------------
DATABASE_URL="mysql://root:root@localhost:3306/taxonomy?schema=public"
# Get this from the Postmark dashboard
POSTMARK_API_TOKEN=fake
# Set this to whatever email you have configured in Postmark
POSTMARK_FROM_EMAIL=[email protected]

# -----------------------------------------------------------------------------
# Email (Postmark)
# -----------------------------------------------------------------------------
POSTMARK_API_TOKEN=
POSTMARK_SIGN_IN_TEMPLATE=
POSTMARK_ACTIVATION_TEMPLATE=
SMTP_HOST=smtp.postmarkapp.com
SMTP_PORT=25
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM=
const POSTMARK_SIGN_IN_TEMPLATE=
const POSTMARK_ACTIVATION_TEMPLATE=
# This is the URL for the local database started with "docker-compose up"
# NOTE: Only change this if you do not use docker-compose to run the database locally!
DATABASE_URL='postgres://postgres:BodenseeCrew22!@homeofos-test-postgres.cfan4z5iswzs.eu-central-1.rds.amazonaws.com:5432/homeofos-test-postgres'

# -----------------------------------------------------------------------------
# Subscriptions (Stripe)
# -----------------------------------------------------------------------------
STRIPE_API_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRO_MONTHLY_PLAN_ID=
# Next Auth Env Variables
NEXTAUTH_URL='test'
# This public url in for the logout redirect to work, should normally be the same as nextauth_url
NEXT_PUBLIC_NEXTAUTH_URL='test'
NEXTAUTH_SECRET='test'
# Github
GITHUB_CLIENT_ID='test'
GITHUB_CLIENT_SECRET='test'
# Gitlab
GITLAB_CLIENT_ID='test'
GITLAB_CLIENT_SECRET='test'
# Google
GOOGLE_CLIENT_ID='test'
GOOGLE_CLIENT_SECRET='test'

# Mail Provider
EMAIL_SERVER=smtp://username:[email protected]:587
EMAIL_FROM=[email protected]

# S3 Provider
S3_ACCESS_ID=XXX
S3_ACCESS_KEY=XXX
S3_BUCKET_NAME=zirkular
S3_REGION=eu-central-1
# Public variables for url creation
NEXT_PUBLIC_S3_BUCKET_NAME=zirkular
NEXT_PUBLIC_S3_REGION=eu-central-1
#Email Marketing
MAILCHIMP_API_KEY=example
MAILCHIMP_ID=example
# Site tracking
SPLITBEE_TOKEN=example
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/*.generated.*
**/*.graphql.d.ts
**/*.graphqls.d.ts
63 changes: 63 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import", "react-hooks"],
env: {
node: true,
},
extends: [
"eslint:recommended",
"plugin:cypress/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:import/typescript",
],
rules: {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
// Disallow imports from src/server/ in src/pages/ except for src/pages/api
// (see the "overrides" section for the exception)
"import/no-restricted-paths": [
"error",
{
zones: [
{
target: "./src/pages",
from: "./src/server",
},
],
},
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": [
"warn",
{
additionalHooks: "(useRecoilCallback|useRecoilTransaction_UNSTABLE)",
},
],
},
overrides: [
{
files: ["next.config.js", "tailwind.config.js"],
rules: {
"@typescript-eslint/no-var-requires": "off",
},
},
{
// Allow imports from src/server/ in src/pages/api
files: ["src/pages/api/**/*"],
rules: {
"import/no-restricted-paths": [
"error",
{
zones: [
{
target: "./src/pages/api",
from: "./src/client/",
},
],
},
],
},
},
],
};
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

126 changes: 101 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,116 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# See http://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
# compiled output
/dist
/tmp
/out-tsc

# testing
/coverage
# Runtime data
pids
*.pid
*.seed
*.pid.lock

# next.js
/.next/
/out/
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# production
/build
# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# IDEs and editors
.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
.DS_Store
*.pem
.sass-cache
connect.lock
typings

# debug
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# vercel
.vercel
# next.js build output
.next

# Lerna
lerna-debug.log

# System Files
.DS_Store
Thumbs.db

# typescript
*.tsbuildinfo
next-env.d.ts
# Generated types
*.generated.ts
*.generated.graphql

.vscode
.contentlayer
#amplify-do-not-edit-begin
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/logs
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/.temp
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplifyconfiguration.dart
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig
.secret-*
**.sample
#amplify-do-not-edit-end
4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

7 changes: 4 additions & 3 deletions .husky/pre-commit
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx pretty-quick --staged
npx --no-install lint-staged
npx --no-install lint-staged
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.next
.vscode
amplify
src/server/graphql
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files.exclude": {
"amplify/.config": true,
"amplify/**/*-parameters.json": true,
"amplify/**/amplify.state": true,
"amplify/**/transform.conf.json": true,
"amplify/#current-cloud-backend": true,
"amplify/backend/amplify-meta.json": true,
"amplify/backend/awscloudformation": true
}
}
Loading

0 comments on commit 5145727

Please sign in to comment.