Giter VIP home page Giter VIP logo

api-nasa's Introduction

API-NEO-NASA-GraphQL Status badge

Backend Service to deploy NEO(Nearth Earth Objects) in GraphQL based on public NASA API Asteroids NeoWs

📢 Requirements

  • Node JS 12.18.1 (Recommended)
  • Mongo DB 4.2.8 (Recommended)

🔨 Installation

  1. Clone Project git clone [email protected]:jsv1280/api-nasa.git
  2. Install dependencies in the root project npm install
  3. In your terminal (root project) execute npm run start
  4. For development enviroment execute npm run dev

🔧 Built with

  • 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)

🔬 Documentation

  1. 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

Postman REST NeoWS Documentation

  1. 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

REST Section Documentation API NASA

  1. With GraphQL established a SDL(Schema Definition Language lib/graphql/schema.graphql) for this project and all the queries necessary to access this service

GraphQL Documentation API NASA

For development remember graphiql will activate to check in the GUI all querys,mutations,inputs of the schema definition

✈️ Deploy

  • 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

⚡ Demo

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

📚 Frontend Implementations

✒️ Author

📑 License

This project is under license MIT

❤️ Acknowledgment

  • Cesar Joshua Pedraza Cruz (Coach Platzi Master)
  • Team Cohort3-Cesar
  • Platzi

🔭 References

api-nasa's People

Contributors

jsv1280 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.