GithubHelp home page GithubHelp logo

agadir's Introduction

🚧 Work In Progress 🚧



Agadir (ⴰⴳⴰⴷ⡉⡔)

Blogging over the terminal

πŸ”Œ Installation

πŸ“₯ Binary release

You can download the pre-built binaries from the release page release page

πŸ“¦ crates.io

You can install agadir from crates.io

cargo install agadir

βš’οΈ Build from source

Run the following command:

git clone https://github.com/pythops/agadir
cd agadir
cargo build --release

This will produce an executable file at target/release/agadir that you can copy to a directory in your $PATH.

πŸ›ž Naviguation

j or Down : Scroll down.

k or Up: Scroll up.

G: Go to the end.

gg: Go to the top.

Enter: Show the content of the post.

Esc: Go to the table of content.

πŸ“° Post format

the posts should have the following format:

---
title: Your post title here
created_at: DD/MM/YYYY
modified_at: DD/MM/YYYY
---

Your post content goes here in Markdown format.

βš™οΈ Configuration

The main directory is $HOME/.agadir, and it can be overriden with AGADIR env variable.

Its structure is as follows:

.agadir/
β”œβ”€β”€ key
└── posts/
   β”œβ”€β”€ assets/
   β”‚  └── fig.png
   β”œβ”€β”€ post_1.md
   └── post_2.md
  • key: This is the server signing key. It is generated once at the startup and used everytime the server restarts.
  • posts: This is where the posts should be located.
  • assets: This directory serves as a place to store images/figures for the posts.

πŸš€ Deploy

The default listening port is 2222 and can be customized with --port or -p cli option.

πŸ“‹Todo

  • Adjust the terminal size based on the client.
  • Display images.
  • Load posts from remote git repositories.

πŸ“Έ Demo

ssh blog.pythops.com

βš–οΈ License

GPLv3

agadir's People

Contributors

pythops avatar

Stargazers

Akif Feyzioğlu avatar Orhun Parmaksız avatar  avatar Brian Hetro avatar  avatar Felix Zeller avatar Will Hopkins avatar Aquib Javed avatar

Watchers

 avatar

Forkers

rustbunker

agadir's Issues

get a code: 2 error message on run

thread 'main' panicked at src/post.rs:32:37:
called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

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.