Skip to content
/ backend Public

The backend and database server for All In One Compute App.

License

Notifications You must be signed in to change notification settings

AIOCA/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIOC-BACKEND

The backend and database server for All In One Compute App.

Setup

Rust

MySQL

  • Install a mysql database server (mariadb recommended)

  • Create database named aioc

    CREATE DATABASE aioc;

Other Configurations

  • Generate Secret Key

    This backend requires a secret key to be generated for generating,encoding and decoding jwt tokens.

    head -c16 /dev/urandom > secret.key

  • Environment Variables

    DATABASE_URL must exported for diesel framework.

    echo DATABASE_URL=mysql://username:password@localhost/aioc > .env

    Replace username and password with your database configurations.

  • Migrations

    Use diesel_clie in order to create tables and relations.

    diesel migration run

Building

The nightly compiler must be used to compile the backend.Set it as default toolchain.

rustup override set nightly

  • Debug builds

    cargo build

  • Release builds

    cargo build --release

About

The backend and database server for All In One Compute App.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages