Coder Social home page Coder Social logo

mangas-api's Introduction

Node.js CI

Mangas API

An Open Source API that provides a standard way to query for mangas from different manga readers.

0. Booting the project

0.0. Setup project files

First of all, you need to clone this repository on the desired machine. You can do this by running:

git clone https://github.com/TheMineWay/mangas-api.git

Then, you will find a file named example.env, you need to make a copy of this file and name it .env. This file will contain the app settings. Once you have the .env file created, modify the contents of this file.

You have to provide values for the PORT and API_KEYS variables.

  • PORT: expects a number. It muct be an available and valid port.
  • API_KEYS: expects a JSON array of strings. The strings represent the API keys that can be used to interact with this server. There is no limit of API keys. Example: ["supersecretapikey_1","supersecretapikey_2"]

0.1. Execute the project

0.1.0 Execute using Docker ๐Ÿณ

You need to have Docker Engine installed. If you don't have it you can follow the official setup guide.

Having the Docker Engine installed, you can setup and start the container by running:

docker compose up

There are two docker-compose.yml files, one for development (docker-compose-dev.yml) and another for production (docker-compose.yml). By default the docker compose command will use the production one.

1. Endpoints documentation

You can check the Open API of the server by settings to true the OPEN_API_DOCS variable on the .env file. Once the project is recompiled you will find in http://machine-ip-address:port/documentation an interactive endpoints list.

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.