Fast Mocker Contributor ๐
Documentation: https://fast-mocker.readthedocs.io/
Source Code: https://github.com/flaviofilipe/fast-mocker
Description ๐
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. ๐โจ
Installation ๐ ๏ธ
To install and set up the Fast Mocker project, follow the steps below:
Prerequisites ๐
- Python 3.11
- Poetry ๐ถ
Steps ๐
-
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
Developing ๐
Follow the commands below to execute different tasks of the Fast Mocker application:
Execute the application โถ๏ธ
poetry run task run
Run tests ๐งช
poetry run task test
Validate the code (linting) โ
poetry run task lint
Automatically fix linting issues โจ
poetry run task fix_lint
Generate coverage report ๐
poetry run task post_test
Contributing ๐ค
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.
License ๐
This project is licensed under the MIT License.