mercurius icon indicating copy to clipboard operation
mercurius copied to clipboard

fastify-cli and Mercurius

Open lsanwick opened this issue 1 year ago • 2 comments

I'm trying to use fastify-cli to run a new Mercurius server and the docs are suprisingly unclear on how to run a newly created server without an explicit app.listen call.

Can anyone illuminate me on how to properly fastify start a server after registering the mercurius plugin?

lsanwick avatar Apr 03 '23 23:04 lsanwick

Hi, I've ran into the same question this week.

Look at this repo:

https://github.com/ChristoPy/woovi-challenge/tree/main/api

It was not only bootstrapped with fastify CLI but also has mercurius configured

ChristoPy avatar Apr 07 '23 20:04 ChristoPy

(Hope I get the job tough :smile:)

ChristoPy avatar Apr 07 '23 20:04 ChristoPy