Skip to content

addy/rachel-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • Rust - use rustup
  • Install dependencies
    • Run cargo install

Configure environment

  • Copy the .env.example file to .env
  • Replace the values in the .env file with your own

Environment variables

  1. DATABASE_URL
    • This should be the path to your SQLite DB
    • Defaults to art.db
  2. SMTP_HOST
    • The host of your SMTP server, like smtp.google.com
  3. SMTP_USER
    • Username to your SMTP server
  4. SMTP_PASS
    • Password to your SMTP server
  5. TO_EMAIL
    • Ideally your email, this is where all contact requests are sent to.

Building

  • Dev Build
    • Run cargo build
  • Release Build
    • Run cargo build --release
  • Running
    • Run cargo run