Skip to content

felixcaldeira/pudu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Rust and MySQL

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source ~/.cargo/env sudo apt install mysql-server mysql-client libmysqlclient-dev sudo systemctl start mysql sudo systemctl enable mysql

Create .env fil with your configuration

cp env.example .env

Install sqlx-cli for migrations

cargo install sqlx-cli --features mysql

Run migrations

sqlx migrate run --database-url "mysql://pudu_user:password@localhost/pudu"

Build and run

cargo run

Production

cargo build --release
cp ./target/release/pudu .

To run it as a service

  • Create pudu.service file into /lib/systemd/system
sudo systemctl daemon-reload
sudo systemctl start pudu
sudo systemctl enable pudu

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors