Skip to content

Demo API for showing how to write a simple documentation and principles of project organization

Notifications You must be signed in to change notification settings

thebinaryfelix/galaxies-api-demo

Repository files navigation

🌌 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 🌟

About

Demo API for showing how to write a simple documentation and principles of project organization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published