forked from bluesky-social/atproto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bin for launching dev-env with an appview (bluesky-social#1454)
script for launching a full dev-env network
- Loading branch information
Showing
3 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { generateMockSetup } from './mock' | ||
import { TestNetwork } from './network' | ||
|
||
const run = async () => { | ||
console.log(` | ||
██████╗ | ||
██╔═══██╗ | ||
██║██╗██║ | ||
██║██║██║ | ||
╚█║████╔╝ | ||
╚╝╚═══╝ protocol | ||
[ created by Bluesky ]`) | ||
|
||
const network = await TestNetwork.create({ | ||
pds: { | ||
port: 2583, | ||
publicUrl: 'http://localhost:2583', | ||
dbPostgresSchema: 'pds', | ||
}, | ||
bsky: { | ||
dbPostgresSchema: 'bsky', | ||
}, | ||
plc: { port: 2582 }, | ||
}) | ||
await generateMockSetup(network) | ||
|
||
console.log( | ||
`👤 DID Placeholder server started http://localhost:${network.plc.port}`, | ||
) | ||
console.log( | ||
`🌞 Personal Data server started http://localhost:${network.pds.port}`, | ||
) | ||
console.log(`🌅 Bsky Appview started http://localhost:${network.bsky.port}`) | ||
for (const fg of network.feedGens) { | ||
console.log(`🤖 Feed Generator started http://localhost:${fg.port}`) | ||
} | ||
} | ||
|
||
run() |