Contributing
Setup
Requirements
- Make:
- macOS:
$ xcode-select --install
- Linux: https://www.gnu.org/software/make
- Windows: https://mingw.org/download/installer
- macOS:
- Python:
$ pyenv install
- Poetry: https://poetry.eustace.io/docs/#installation
To confirm these system dependencies are configured correctly:
$ make doctor
Installation
Install project dependencies into a virtual environment:
$ make install
Local Development
To start the API server:
$ make run
Adding a Template
To add a new meme template:
- Visit
/images/<my_new_template_key>
- Add a
default.png
(or JPG) background image intemplates
directory - Update
config.yml
in thetemplates
directory - Refresh
/images/<my_new_template_key>
to see the sample meme
Continuous Integration
Manual
Run the tests:
$ make test
Run static analysis:
$ make check
Automatic
Keep all of the above tasks running on change:
$ make watch