Giter Club home page Giter Club logo

superheroesapi's Introduction

Super Heroes API

Go

Structure for app ๐Ÿ“‚ :octocat:

Guide

  1. Installing necessary dependencies
  2. Running the app
  3. Documentation
  4. Tests

Installing Necessary Dependencies

First of all, you need to install Docker and docker-compose in case you don't have them already installed. For this, you can access this link and install Docker and here for docker-compose.

Running the App

Now we can run the app. Go to project root folder, where is located Makefile and run make run-app to bring services up. Docker may need to build images for the first time, and this operation may take some time to complete. Example:

Running Makefile

$ make run-app
Running the application
Creating superheroesapi_postgres_1 ... done
Creating superheroesapi_api_1      ... done
...
...
...
postgres_1  | 2020-07-07 14:22:18.927 UTC [1] LOG:  database system is ready to accept connections
api_1       | 2020/07/07 14:22:20 Database Migrated
api_1       |         _______ __
api_1       |   ____ / ____(_) /_  ___  _____   HOST   0.0.0.0  OS    LINUX
api_1       | _____ / /_  / / __ \/ _ \/ ___/   PORT   3000     CORES 4
api_1       |   __ / __/ / / /_/ /  __/ /       TLS    FALSE    MEM   7.6G
api_1       |     /_/   /_/_.___/\___/_/1.12.4  ROUTES 6        PPID  0

The following addresses can be used to access running services:

Documentation

  • For documentation, all code documentation stay above structs and functions definitions.
  • For API usage, was used the Swagger.io, after run the app you can access the Swagger here to see how to use the application routes.

Tests

  • For run the tests, just go to root folder of this project and run make test.

superheroesapi's People

Contributors

medson avatar

Watchers

 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.