REST API for Tackode.
To have a working copy of this project, follow the instructions.
Setup Rust.
Define your environment variables as defined in .env.sample
. You can either manually define these environment variables or use a .env
file.
Setup a postgresql database (macOS commands).
brew install postgresql
createuser --pwprompt --superuser tackode # set password to tackodepw for instance
createdb --owner=tackode tackode
You can use Docker Compose and run the database:
docker-compose up -d postgres
GET /
cargo test
Because of the usage of font-size:0px;
by MJML, all emails are normally considered as spam.
When saving emails, remove all occurence of font-size:0px;
in the exported HTML to avoid that and save it with UTF8-BOM.