Backend Service to deploy NEO(Nearth Earth Objects) in GraphQL based on public NASA API Asteroids NeoWs
- Node JS 12.18.1 (Recommended)
- Mongo DB 4.2.8 (Recommended)
- Clone Project
git clone git@github.com:jsv1280/api-nasa.git
- Install dependencies in the root project
npm install
- In your terminal (root project) execute
npm run start
- For development enviroment execute
npm run dev
- Express (cors,express-graphql,helmet)
- GraphQL (graphql, graphql-tools)
- MongoDB (NodeJS Mongo DB Driver)
- Dotenv
- Standard,Nodemon (Development)
- AWS EC2 Instance
- PM2 (Production)
- graphdoc (Documentation)
- This project start documenting the public NASA API Asteroids NeoWs to have clear all the endpoints and data expose for the NASA API. To make more clear this, I documented the API with Postman to add a more descriptive view to check how behave this API and with that check which data will be included in this API
- Next step, It was create three endpoints, one for creating new NEOS object based of the data model proposed in graphql schema, other for get all NEOS and finally delete duplicated NEOS objects
- With GraphQL established a SDL(Schema Definition Language
lib/graphql/schema.graphql
) for this project and all the queries necessary to access this service
For development remember graphiql will activate to check in the GUI all querys,mutations,inputs of the schema definition
- In your AWS Instance make sure you have successfully installed the previous requirements detailed in the beginning
- Install globally pm2
npm install pm2 -g
- Start Service
npm run start
To use this service make a POST request with your queries to:
http://ec2-54-234-62-6.compute-1.amazonaws.com:8080/api/graphql
In /mocks/graphql_client.js
you can find a simple example
- NeoBit By José Abdiel Ortega Vázquez and Juan Esteban Deossa Pertuz
- CommetCat By Hector Reyes and Rafael Alvarez Cardona
- T-rexpace By Juan Gaybre and Felipe Merchan
- Asteroids By Luis Cabezas and Osvaldo Arzate
- Jairo Salazar Backend Developer (Platzi Master Student)
This project is under license MIT
- Cesar Joshua Pedraza Cruz (Coach Platzi Master)
- Team Cohort3-Cesar
- Platzi