Skip to content

oScape/backend-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

backend-rs

Multithreaded Web Server in rust-lang with a model managed by Diesel as ORM for a MySQL database.

MySQL

  • Follow this tutorial or:
  • Download the mysql-installer-community-8.X
  • Install MySQL Server (mandatory) and Workbench (optional)
  • Add Connector/C 6.1 (mandatory)
  • Run setx MYSQLCLIENT_LIB_DIR "C:\Program Files\MySQL\MySQL Connector C 6.1\lib\vs14"
  • Create a database
  • Add the env. path DATABASE_URL mysql://username:password@localhost/db_name
  • If some auth issues look here.

diesel_cli

  • Run cargo install diesel_cli --no-default-features --features mysql

Building server bin

  • If the build failed after change your environment variable, execute cargo clean and rebuild.

About

Web API in rust-lang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages