Skip to content

Tackode/backend

Repository files navigation

Tackode Backend Build

REST API for Tackode.

Getting started

To have a working copy of this project, follow the instructions.

Installation

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

Documentation

HTTP API

GET /

Tests

cargo test

Emails

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.

Authors

License

MIT