Giter VIP home page Giter VIP logo

asteroids-fullstack's Introduction

Asteroids App

Simple project to show a list of Asteroids and their details from NASA API(https://api.nasa.gov/).

The project has two folders:

  • client: React App with Typescript
  • server: NodeJS with Express

How to run the project

  1. Clone the project into your local machine
  2. Install dependencies on client and server folders with npm install
  3. Create a .env file on both folders using .env.example as template.
  4. Run the server with npm start on server folder
  5. Run the client with npm start on client folder

Improvements

  • Add unit tests
  • Add Typescript to server. It wasn't added because since it only one route that forwards a request to NASA API, it was not necessary. But if some other routes are added and database persistance layer, it would be a good idea to add Typescript to server.
  • Move some logic from App.tsx to the server to handle data extraction from the NASA API response.
  • Adding database persistance layer to server. It would be a good idea to add a database to store the asteroids data and avoid making a request to NASA API every time the user wants to see the list of asteroids. It would be a good idea to add a cron job to update the database every day with the new asteroids. Also with this layer we can persist the user's favorite asteroids on the database.

Notes

The solution for the SQL task: https://github.com/irysan/test-challenge/blob/main/sql/postgres/README.md can be found on sql-task-solution.md file.

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.