/align_mind

Primary LanguageRustMozilla Public License 2.0MPL-2.0

Alignmind Server

Alignmind is a web application for tracking emotions and thoughts. The application was created with the goal of helping you reflect on your emotions and thoughts, and keep a record of them in a simple and organized way.

License: Mozilla Public License 2.0

Table of Contents

Development Setup

Important: To run this server, it is necessary to have the Rust programming language installed. If you do not have Rust installed yet, you can download and install the latest stable version of Rust from the official Rust website

First, clone the repo and cd into the project:

git clone git@github.com:bsebas/align_mind_server.git
cd align_mind_server

Docker Postgres (Optional)

Run container with service postgres

docker-compose up -d postgres

Diesel

Install diesel and run migrations

cargo install diesel_cli --no-default-features --features postgres
echo DATABASE_URL=postgres://postgres:postgres123@localhost:5432/postgres > .env
diesel setup

Run locally (Server)

Create a .env file in ./ and set this value:

DATABASE_URL = postgres://postgres:postgres123@localhost:5432/postgres
JWT_SECRET = jwt_secret

Install dependencies and run locally:

cargo run