Skip to content

maneeshsagar/pacevoyagers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exoplanet Microservice

Description

A Golang microservice for managing exoplanets, providing CRUD operations and fuel estimation for space voyages.

Features

  1. Add an Exoplanet
  2. List Exoplanets
  3. Get Exoplanet by ID
  4. Update Exoplanet
  5. Delete Exoplanet
  6. Fuel Estimation

Exoplanet Types

  • Gas Giant: Composed of gaseous compounds.
  • Terrestrial: Earth-like, rocky, larger than Earth.

Fuel Estimation Formula

  • d: distance (light years)
  • g: gravity
  • c: crew capacity

Gravity Calculation:

  • Gas Giant: g = 0.5 / r^2
  • Terrestrial: g = m / r^2
  • Constraints: 10 < d < 1000, 0.1 < m < 10, 0.1 < r < 10

Getting Started

Prerequisites

  • Go 1.16+
  • Docker

Setup

  1. Clone the repository
  2. Build and run the Docker container:
    docker build -t exoplanet-service .
    docker run -it -p 8080:8080 exoplanet-service

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages