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.

20 lines (16 loc) 512 B
const { ApolloServer } = require('apollo-server'); const typeDefs = require('./schema'); const { createStore } = require('./utils'); const LaunchAPI = require('./datasources/launch'); const UserAPI = require('./datasources/user'); const store = createStore(); const server = new ApolloServer({ typeDefs, dataSources: () => ({ launchAPI: new LaunchAPI(), userAPI: new UserAPI({ store }) }) }); server.listen().then(({ url }) => { console.log(`🚀 Server ready at ${url}`); });