Documentation: https://fast-mocker.readthedocs.io/
Source Code: https://github.com/flaviofilipe/fast-mocker
Fast Mocker is a project developed in Python 3.11 using FastAPI. It serves as a tool to simulate a REST API by returning responses based on YAML files located in the /mocks directory. The project includes two example files: users.yml and animals.yml. 🐍✨
To install and set up the Fast Mocker project, follow the steps below:
- Python 3.11
- Poetry 🎶
-
Clone the repository from Github:
git clone https://github.com/flaviofilipe/FastMocker.git
-
Change into the project directory:
cd FastMocker
-
Install the project dependencies using Poetry:
poetry install
Follow the commands below to execute different tasks of the Fast Mocker application:
poetry run task run
poetry run task test
poetry run task lint
poetry run task fix_lint
poetry run task post_test
If you would like to contribute to Fast Mocker, follow the steps below:
-
Fork the repository on Github.
-
Clone your forked repository:
git clone https://github.com/flaviofilipe/FastMocker.git
-
Create a new branch for your changes:
git checkout -b feature/your-feature
-
Make the necessary changes and commit them:
git add . git commit -m "Add your commit message here"
-
Push your changes to your Github repository:
git push origin feature/your-feature
-
Create a pull request on the original repository to propose your changes.
This project is licensed under the MIT License.