Skip to content

Tackode/backend

This branch is 1 commit ahead of develop.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c59dece · Jan 20, 2023
Dec 27, 2022
Jun 12, 2020
May 1, 2021
Jan 5, 2021
May 22, 2021
Dec 13, 2021
Jun 6, 2020
May 21, 2021
May 10, 2021
Jan 20, 2023
Dec 13, 2021
Jan 5, 2021
Jun 18, 2020
May 21, 2021
Jan 5, 2021

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