Skip to content

tmvnkr/spacelaunch-stats-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spacelaunch Stats

Node server using Express and Apollo server handeling all datasources

Data Sources

A majority of the data is currently sourced from r-spacex/SpaceX-API and Open Weather Map API using the Apollo GraphQL Client.

Usage

For the client to be able to retrieve information it needs this spacelaunch-stats-server See the spacelaunch-stats-server GitHub page on any information regarding the server.

After downloading this project, run:

npm install

.env file

To be able to run this project you will have to create a .env file and fill it with your own keys/links, the following are required:

Optional:

  • ENGINE_API_KEY: This is the engine api key from the Apollo Platform (if not used, remove engine: {apiKey: process.env.ENGINE_API_KEY} from server.js)

Available Scripts

In the project directory, you can run:

npm run server

Spins up a development Node js server with nodemon
Open http://localhost:5000/graphql to view the GraphQL interface in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Transpiles and minfies all ES6 to JS optimized for Node js