This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from fastapi-mvc/improve_docs
Improve documentation
- Loading branch information
Showing
9 changed files
with
529 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,6 +76,7 @@ def set_nix(): | |
"overlay.nix", | ||
"Nix.mk", | ||
".github/workflows/nix.yml", | ||
"docs/nix.rst", | ||
] | ||
) | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Deployment | ||
========== | ||
|
||
Will be added soon: `issue <https://github.com/fastapi-mvc/fastapi-mvc/issues/81>`__ | ||
|
||
In the meantime, `FastAPI deployment documentation <https://fastapi.tiangolo.com/deployment/>`__ might be helpful. | ||
And, if you shall have any questions feel free to issue them `here <https://github.com/fastapi-mvc/fastapi-mvc/issues/new?assignees=&labels=question&template=question.md&title=>`__. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
Installation | ||
============ | ||
|
||
Application | ||
----------- | ||
|
||
Prerequisites: | ||
|
||
* Python 3.7 or later `(How to install python) <https://docs.python-guide.org/starting/installation/>`__ | ||
* make | ||
* (optional) curl | ||
* (optional) Poetry `(How to install poetry) <https://python-poetry.org/docs/#installation>`__ | ||
|
||
To install fastapi-mvc from source first clone the repository and use ``make install`` target: | ||
|
||
.. code-block:: bash | ||
make install | ||
By default ``make install`` target will search first for ``python3`` then ``python`` executable in your ``PATH``. | ||
If needed this can be overridden by ``PYTHON`` environment variable. | ||
|
||
.. code-block:: bash | ||
export PYTHON=/path/to/my/python | ||
make install | ||
Lastly if Poetry is not found in its default installation directory (${HOME}/.local/share/pypoetry) this target will install it for you. | ||
However, one can always point to existing/customize Poetry installation with `environment variables <https://python-poetry.org/docs/configuration/#using-environment-variables>`__: | ||
|
||
.. code-block:: bash | ||
export POETRY_HOME=/custom/poetry/path | ||
export POETRY_CACHE_DIR=/custom/poetry/path/cache | ||
export POETRY_VIRTUALENVS_IN_PROJECT=true | ||
make install | ||
Or using Poetry directly, should you choose: | ||
|
||
.. code-block:: bash | ||
poetry install | ||
Infrastructure | ||
-------------- | ||
|
||
Prerequisites: | ||
|
||
* make | ||
* gcc | ||
* golang | ||
* minikube version 1.22.0 `(How to install minikube) <https://minikube.sigs.k8s.io/docs/start>`__ | ||
* helm version 3.0.0 or higher `(How to install helm) <https://helm.sh/docs/intro/install>`__ | ||
* kubectl version 1.16 up to 1.20.8 `(How to install kubectl) <https://kubernetes.io/docs/tasks/tools/install-kubectl-linux>`__ | ||
* Container runtime interface. | ||
|
||
.. note:: | ||
Makefile dev-env target uses docker for minikube, for other CRI you'll need to modify this line in ``build/dev-env.sh`` ``MINIKUBE_IN_STYLE=0 minikube start --driver=docker 2>/dev/null`` | ||
|
||
To bootstrap local minikube Kubernetes cluster exposing ``{{cookiecutter.folder_name}}`` application run: | ||
|
||
.. code-block:: bash | ||
make dev-env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Using Nix | ||
========= | ||
|
||
Installation | ||
------------ | ||
|
||
Prerequisites: | ||
|
||
* Nix 2.8.x or later installed `(How to install Nix) <https://nixos.org/download.html>`__ | ||
|
||
First configure Nix channel if needed: | ||
|
||
.. code-block:: bash | ||
nix-channel --add https://nixos.org/channels/nixos-22.05 | ||
nix-channel --update | ||
Next install make via Nix: | ||
|
||
.. code-block:: bash | ||
nix-env --install gnumake | ||
# If you do not want to install make to your profile, one can always use it ad-hoc via nix-shell | ||
nix-shell -p gnumake | ||
Lastly, use ``make install`` target: | ||
|
||
.. code-block:: bash | ||
make install | ||
# Or | ||
nix-shell -p gnumake --run "make install" | ||
Or using Nix directly, should you choose: | ||
|
||
.. code-block:: bash | ||
nix-build -E 'with import <nixpkgs> { overlays = [ (import ./overlay.nix) ]; }; callPackage ./editable.nix {python = pkgs.python310; poetry2nix = pkgs.poetry2nix;}' |
Oops, something went wrong.