Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neo Web Service Example

Getting Started

Technologies used

Symfony Components

Prerequisites

  • Composer
  • Apache( or Nginx)
  • MongoDB

Installing

At first you need to set up parameters.yml.

parameters:
    neo_ws:
        end_point: 'https://api.nasa.gov/neo/rest/v1'
        api_key: N7LkblDsc5aen05FJqBQ8wU4qSdmsftwJagVK7UD
    mongodb_server: mongodb://localhost:27017
    mongodb_database: neo_ws

Then you can run following command to install dependencies composer install.

Running

First command must be ran to get feeds in last 3 days: php app/console neo:ws:feed.

Now you can start the server and view contents in browser: php app/console server:start.

Below you may find route list.

Method Path Params
GET /
GET /neo/hazardous
GET /neo/fastest hazardous(required: false): boolean
GET /neo/slowest hazardous(required: false): boolean

Stop

Following line will stop the server php app/console server:stop.

Authors

Resources

About

Finding near earth objects via NASA api and store fetched data on MongoDB

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages