Code Monkey home page Code Monkey logo

asteroid-tracker's Introduction

Build Status

Asteroid Tracker

This Web API allows users to search NASA's database for objects close to Earth's orbit.

Getting started

  • Clone or fork the repository.
  • Set the environment variable NASA_KEY with your NASA API key.
  • Run yarn
  • Make sure that MongoDB is installed and the server is running.
    • You can optionally set the environment variable MONGO_PORT to whichever port your Mongo server is listening. The default is 27017.
  • Seed the database with data from NASA's API by running npm run fetch_neos.
  • Start the server with npm run serve.
  • Run the tests with npm test.

Technologies Employed

  • Express
    • The choice of Express for a simple, lightweight API server felt natural.
    • The un-opinionated and tabula-rasa-oriented approach of the node server presents a good opportunity to demonstrate my own sense of application structure.
    • The combination of server-side Javascript with MongoDB's BSON brings with it a certain feeling of consistency.
    • I had been trained in Express, but it had been a while since I had worked with it. I wanted to take an opportunity to revisit the framework.
  • MongoDB
    • MongoDB's ability to store and work with a variety of data types makes it a beneficial tool for the assignment. Mongo's abilities to perform bulk writes and aggregates were particularly useful in saving API data and grouping asteroids by date.
  • Mongoose
    • I included this ORM for simple document validations and for better code maintainability through built-in CRUD-related methods.
  • Mocha with Chai
    • Testing is always essential, and these are two proven tools.
    • Chai provides useful tools for acceptance testing in addition to its human-readable syntax.

asteroid-tracker's People

Contributors

drewmoore avatar

Watchers

 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.