Skip to content
REST-like API for howtocards
Branch: dev
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github docs(funding): create github funding config May 24, 2019
deployment chore: add systemd service Apr 10, 2019
migrations feat(search): implement search for cards (#11) Feb 26, 2019
rfc
src feat(search): implement search for cards (#11) Feb 26, 2019
.dockerignore feature: docker image is now building in less than 100mb unzipped ima… Oct 17, 2018
.env.sample chore(docker): fix docker multi-stage build (#12) Feb 25, 2019
.gitignore chore: add pm tool Feb 24, 2019
.rustfmt.toml
.travis.yml
Cargo.lock feat: upgrade crates Apr 5, 2019
Cargo.toml feat: upgrade crates Apr 5, 2019
Dockerfile chore(docker): fix docker multi-stage build (#12) Feb 25, 2019
README.md Makefile added (#16) Jun 1, 2019
create-db.sql fix syntax error (#14) Jun 9, 2019
diesel.toml
docker-compose.yml
docker-entrypoint.sh
makefile
pm.sh

README.md

HowToCards

Requirements

Installation

Ubuntu

curl https://sh.rustup.rs -sSf | sh
sudo apt install gcc
sudo apt install postgresql postgresql-contrib libpq-dev

Docker

Using makefile

make docker-init

or manual

docker-compose up -d
docker exec -i howtocards_backend bash -c 'cd /app && diesel migration run'

Diesel CLI

cargo install diesel_cli --no-default-features --features postgres

Build and run

# Build production binary
cargo build --release

# Development
cargo install cargo-watch
cargo watch -x run

After pull, checkout, or db change

diesel migration run

To revert migration run

diesel migration revert
You can’t perform that action at this time.