Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjohansebas/align_mind
https://github.com/bjohansebas/align_mind
cors diesel-rs rocket rust server
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bjohansebas/align_mind
- Owner: bjohansebas
- License: mpl-2.0
- Archived: true
- Created: 2022-12-10T19:30:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T02:35:59.000Z (over 1 year ago)
- Last Synced: 2024-10-05T16:41:40.885Z (about 1 month ago)
- Topics: cors, diesel-rs, rocket, rust, server
- Language: Rust
- Homepage: https://alignmind.vercel.app
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](LICENSE)
## Table of Contents
- [Alignmind Server](#alignmind-server)
- [Table of Contents](#table-of-contents)
- [Development Setup](#development-setup)
- [Docker Postgres (Optional)](#docker-postgres-optional)
- [Diesel](#diesel)
- [Run locally (Server)](#run-locally-server)## 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](https://www.rust-lang.org/tools/install)**
First, clone the repo and cd into the project:
```bash
git clone [email protected]:bsebas/align_mind_server.git
cd align_mind_server
```### Docker Postgres (Optional)
Run container with service postgres
```bash
docker-compose up -d postgres
```### Diesel
Install diesel and run migrations
```bash
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:
```bash
DATABASE_URL = postgres://postgres:postgres123@localhost:5432/postgres
JWT_SECRET = jwt_secret
```Install dependencies and run locally:
```bash
cargo run
```