Skip to content

denison3965/Api-planet

Repository files navigation

🪐 Api-planet 🪐

About this project

This API will provide us with information about some planets, such as:

  • Belonging galaxy
  • Temperature
  • Gravity
  • Descrition about planet
  • One planet image

Tacnologies used;

  • 💹 Node Js — A web framework for Node Js
  • 🔗 Express — Express is a minimal and flexible Node.js web application

How to run project

To run this app you need install dependence, for that, you need to execute this command to install all dependence necessary to run a API:

npm install or yarn add

The next step is execute the aplication with this command bellow, in the VisualCode terminal:

node server.js

After running the command above, your API is already running on port 3001, with this when making a GET request via postman or insomnia with the following address'http://localhost:3001/planet', you will receive something like this in response:

[
{
"id": 1,
"nome": "Mercúrio",
"img": "https://denison3965.github.io/Img-planet/Mercúrio.jpg",
"description": "Mercúrio é o menor dos planetas, e o que está mais próximo do sol. Ele gira lentamente, cerca de duas vezes para cada três órbitas em volta do astro rei. Mercúrio não tem luas e anéis, e sua atmosfera é tão fina que os cientistas a classificam como uma exosfera.", "infotemp": "A temperatura na sua superfície pode chegar, durante o período diurno, a 550ºC.",
"temp": "550ºC",
"galaxy": "Via Láctea",
"gravity": "3,7 m/s²"
},

...

Devs 🪐

  • Ana Lucia Ferreira Gome GitHub
  • Denison de Almeida Portela GitHub
  • Felipe Braga Duarte GitHub

About

🪐 API-planet 🪐

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published