Skip to content

Commit

Permalink
Create a place to start a migration to Effect
Browse files Browse the repository at this point in the history
Refs #1834
  • Loading branch information
thewilkybarkid committed Aug 28, 2024
1 parent 61f10c9 commit b7ffda6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"crossref-ts": "^0.1.5",
"datacite-ts": "^0.1.4",
"doi-ts": "^0.1.9",
"effect": "^3.6.7",
"express": "^4.19.2",
"express-async-handler": "^1.2.0",
"fetch-fp-ts": "^0.1.6",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createTerminus } from '@godaddy/terminus'
import KeyvRedis from '@keyv/redis'
import { SystemClock } from 'clock-ts'
import * as dns from 'dns'
import { Effect } from 'effect'
import * as C from 'fp-ts/lib/Console.js'
import * as E from 'fp-ts/lib/Either.js'
import * as RT from 'fp-ts/lib/ReaderTask.js'
Expand Down Expand Up @@ -150,4 +151,4 @@ createTerminus(server, {
signals: ['SIGINT', 'SIGTERM'],
})

server.listen(3000)
Effect.runFork(Effect.sync(() => server.listen(3000)))

0 comments on commit b7ffda6

Please sign in to comment.