GithubHelp home page GithubHelp logo

notesthroughcli's Introduction

Note taking app for the command line written in Rust

Fully Explaining each code line to the code , Yes it is messy due to so much comments , but any beginner can take a look at this code and understand

Notes will be saved in database and its schema will be basically id and body column storing the unique identifier and the note's content itself respectively. It works offline

using sqlite3 as database and rusqlite as the wrapper for it.

rusqlite will be used for the database operations. the bundled feature tell the package to compile SQLite.

It have CRUD operations for the notes.

  • Create ( create a new note, with title, current date and time, and body(when stop writiing just write end in new line and press enter to save the note))
  • Read ([/list] will list all the saved notes in your database)
  • Update ([/edit (id) (changed_body)] will changed the body of the note of the respective Id with the body you provided)
  • Delete ([/del (id)] will delete the note)
  • clear() (will clear the note saved in buffer_line)
  • new (will create a new note, title, date and then you can push the body)
  • push (will push the note to the database and wil close the program after pushing)
  • end (will end the program without pushing anything) .

To install in your path so you can use from your command line

cargo install --path .

Run the program after installing on your path through

cargo new notesTakingCLI

You can modify the name in [Cargo.toml]

Dir notes.db in repo is just the sample .

notesthroughcli's People

Contributors

mfaiqkhan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.