UNPKG

teleprice-quoting-system

Version:

a live feed pricing system for exchanges, wire services, and telegraphic news. Use in indexing pricing and matching indexed prices.

22 lines (15 loc) 514 B
import Express from 'express'; import getPort from 'get-port'; import { ApolloServer } from 'apollo-server-express'; import gramps from '@gramps/gramps'; async function startServer() { const PORT = await getPort(8080); const GraphQLOptions = await gramps(); const server = new ApolloServer(GraphQLOptions); const app = Express(); server.applyMiddleware({ app }); app.listen(PORT, () => { console.log(`=> server running at http://localhost:${PORT}/`); }); } startServer();