Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
/ mixerapi.com Public archive

MixerAPI documentation. Streamline development of APIs in CakePHP.

Notifications You must be signed in to change notification settings

mixerapi/mixerapi.com

Repository files navigation

MixerAPI.com

See the official documentation at MixerAPI.com.

Documentation was built using MkDocs. It is designed to pull in the README.md files from all MixerAPI plugins. These are pulled in as git submodules. Additional documentation can be added in the docs/ directory and mapped to the navigation in mkdocs.yml.

Installing

git clone git@github.com:mixerapi/mixerapi.com.git mixerapi.com
cd mixerapi.com
make init

Running

make run

This includes a live reload as docs and configs change. You can browse the site via http://localhost:8000/ by default.

Building

make build

Docker Image

The docker image used by mixerapi is here: https://hub.docker.com/systematical/mixerapidocs and can be seen locally in Dockerfile.

Adding new MixerAPI plugins

git submodule add https://github.com/mixerapi/my-new-plugin
make update

Then add it to the nav in mkdocs.yml

Production Web Server Settings

Setup on production is pretty standard. 404 errors need to be pointed at 404.php which has some custom redirect logic in it. FPM needs to be informed to use this as well with ProxyErrorOverride. Aside from handling 404 errors, the site is static and does not need PHP.

# apache virtualhost
<VirtualHost *:443>
    ServerName mixerapi.com
    DocumentRoot /var/www/mixerapi.com/site
    <Directory /var/www/mixerapi.com/site>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    <FilesMatch \.php$>
        SetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost/"
        ProxyErrorOverride on
    </FilesMatch>
    ErrorDocument 404 /404.php
    SSLEngine On
    # SSL settings here
</VirtualHost>

About

MixerAPI documentation. Streamline development of APIs in CakePHP.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published