topcowmoo / dictyosperma-album

Kanban 4U
1 stars 0 forks source link

server.js #14

Closed garrethil closed 2 months ago

garrethil commented 2 months ago

import database conmnection and dependencies,

create express application, set port, create apollo server instance

create function to start apollo server

middleware request bodies

apply apollo server middlewawre to graphql endpoint

serve static files and handle client side routing

listen for db connection open event

call the async function to start the server