Skip to content

mfathonin/rustodo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo List Apps

Todo list cli app build with Rust

Prerequisite

  1. Make sure you have Postgres running.
  2. Make sure you have installed diesel-cli. This project is using posgresql as the main DB
    cargo install diesel_cli --no-default-features --features postgres
    

    Notes:
    Sometimes you need to install libpq for supporting postgres backend

  3. Creating .env file. reference: .env.example
  4. Set DATABASE_URL in the .env file.
  5. Initialize diesel using: diesel setup.
  6. Run the migration using: diesel migration run.

How to setup

  1. Install dependency and build app using cargo
    cargo build --release
  2. Create a copy or link to target/release/rustodo. I prefer using symlink.
    ln -s target/release/rustodo rustodo
    
  3. Run the app
    # Run interactively using:
    ./rustodo
    
    # Or 
    ./rustodo add "Create new todo list api" "Testing todo list app"
    ./rustodo list

About

Todo-list Backend with Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published