GithubHelp home page GithubHelp logo

amineaml / fadayiy-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 486 KB

The Back-End API for the Fadayiy project

License: MIT License

JavaScript 1.13% TypeScript 98.05% Dockerfile 0.82%
nestjs typescript graphql

fadayiy-api's Introduction

Fadayiy API

An API for Fadayiy App, a platform for exploring space.

EtymologyKey FeaturesAPIArchitecture DiagramHow to useBuilt withLicense

Ethymology

Fadayiy meaning 'a space thing' in arabic, comes originally from my willingness to build this application with content in that language but wasn't satisfied with the translation options or they didn't offer a translation that was enough without having to proof read it for mistakes, which means going through hundreds of pages, a more than a one man's job.

Key Features

The principal key features to keep note of are:

  • Explore space stations
  • Explore astronauts
  • Explore space agencies
  • Recent earth picture from space
  • Astronomy picture of the day
  • Upcomming launches
  • Newsletter

How to use

Requirements

This project is built using NestJS, with Node.js v14+ and NPM v8+, you can use Yarn or any other package manager after doing the required changes.

Developing

Rename .env.example into .env and add your environment variables.

npm install

npm run start:dev

Which will start the server on http://localhost:3000 with the GraphQL client at http://localhost:3000/graphql

Deploying

npm run docker:prod:up

Sample queries

Once you have the GraphQL client running on your machine, you can verify things are working by executing these queries:

Get the astronomy picture of the day

{
  astronomyPictureOfTheDay {
    explanation,
    hdurl,
    media_type,
    title,
    copyright
  }
}

Get space stations

{
  stations {
    name,
    status {
      name
    },
    type {
      name
    },
    image_url,
    description,
    founded,
    deorbited,
    orbit,
    owners {
      name,
      abbrev
    },
    id
  }
}

Built with

License

This project is under the MIT license.

fadayiy-api's People

Contributors

amineaml avatar

Watchers

 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.