Code Monkey home page Code Monkey logo

solar-system's Introduction

Celestial Bodies Visualisation

This work is protected by the CC BY-NC-ND 4. license

Description

The system visualises the acctual Solar System data provided by the NASA JPL Horizons service. There are two visualisation modes:

  • Solar System,
  • Planet & its satellites.

Both are dependend on the user selected parameters.

"Solar System" mode:

  • Start date - Defines the beginning of the time frame used in the visualisation.
  • End date (optional) - Defines the end date of the time frame. The visualisation freezes once it reaches the end date. If not set, the visualisation will continue in real time.
  • Speed mode & Defines the visualisation speed which is defined by the time needed for one jump - transition between two subsequent orbit points. The available speed modes are defined as follows:
    - Real Time - one jump* corresponds to 1 second in the real world.
    - Medium - one jump corresponds to 2.4 hours in the real world.
    - Fast - one jump corresponds to 4.8 hours in the real world.

"Planet & its satellites" mode:

  • Planet - To be selected from the planets of the solar system.
  • Start date - Defines the beginning of the time frame used in the visualisation.
  • End date (optional) - Defines the end date of the time frame. The visualisation freezes once it reaches the end date. If not set, the visualisation will continue in real time.
  • Speed mode & Defines the visualisation speed which is defined by the time needed for one jump - transition between two subsequent orbit points.

jump - trasnition from one orbit point to another

Technologies

Frontend part is build using BabylonJS web rendering engine along with TypeScript and React for the UI.
Backend part is build using Flask and MongoDB.

Deploy

Frontend

To run the project locally:

cd frontend
npm install
npm start

Then go to http://localhost:3000/ page in your browser.

To run tests:

cd frontend
yarn test

Backend

For backend setup there is a need to create .env file under /app directory.

To backend server and database locally:

cd app
docker-compose up --build

See logs:

sudo docker logs <app_image_id>

Run tests:

sudo docker exec -it <app_image_id> pytest test.py

Useful docker commands: To check app_image_id please run

sudo docker container ls

and find the ID of app_web image.

To remove all images

docker prune -a

solar-system's People

Contributors

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