Skip to content

Commit

Permalink
Migrate from Postgres/Redis to SQLite! (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds authored Nov 21, 2022
1 parent 111d17f commit 5f19e7b
Show file tree
Hide file tree
Showing 119 changed files with 9,420 additions and 8,082 deletions.
12 changes: 8 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ TITO_API_SECRET=secret_live_some_long_thing
SESSION_SECRET=anything_works_here
MAGIC_LINK_SECRET=whatever_stuff

# If you're running the postgres db from docker-compose then this is the URL you should use
DATABASE_URL="postgresql://kody:the_koala@localhost:5432/kentcdodds_db?schema=public"
# Feature: basically everything
# Mocked: No, must run sqlite locally
DATABASE_URL="file:./data.db?connection_limit=1"
CACHE_DATABASE_PATH="other/cache.db"

# If you're running the redis db from docker-compose then this is the URL you should use
REDIS_URL="redis://:alex_rocks@localhost:6379"
# Feature: Fly regions
# Mocked: No
FLY_REGION="den"
FLY_INSTANCE="123456"

# Feature: Call Kent podcast
# Mocked: yes
Expand Down
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('@types/eslint').Linter.BaseConfig} */
module.exports = {
extends: [
'eslint-config-kentcdodds',
Expand All @@ -13,6 +14,7 @@ module.exports = {
'no-console': 'off',

// meh...
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/sort-type-union-intersection-members': 'off',
'jsx-a11y/media-has-caption': 'off',
Expand Down
Loading

0 comments on commit 5f19e7b

Please sign in to comment.