Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.8 KB

readme.md

File metadata and controls

47 lines (29 loc) · 1.8 KB

🌌 Galaxies API

Intro

This is a demo API, created for educational purposes. The main use of this code is to orient Ironhack's students with their second project on the Web Development Course.

📝 Description

This project consists on a base code for constructing a REST API that provides minimal data about known galaxies in the universe.

Objectives

  • Show a demo API using a simple server setup with Express.js
  • Document its routes and params in Swagger
  • Create a basic project structure for designing APIs with Javascript

🚀 Run the project

⚠️ Requirement

Steps

  1. Download or clone this repo
  2. Run npm install to download project dependencies
  3. Run npm start
  4. Project will run on http://localhost:3000 by default
  5. To populate database, run npm run seed.

To open the endpoint docs access: http://localhost:3000/api-docs

🔨 Setup environment

You must create a .env file in the root folder and setup the following variables

  • PORT = number_of_port [default=3000]
  • ENV = [development || production]
  • DATABASE_URL = mongodb_database_url

Final considerations

🎉 If you like this project, give it a star 🌟