How to Install This Week in Past on Debian Latest
This Week in Past is an open-source CLI tool that fetches historical events that happened on this week from Wikipedia. In this tutorial, we'll discuss how to install This Week in Past on Debian Latest.
Prerequisites
- A Debian latest machine
- A terminal with sudo access
- Git & Node.js installed
Step 1: Clone the This Week in Past repository
Firstly, open the terminal on your Debian machine and clone the This Week in Past repository from Github with the following command:
git clone https://github.com/RouHim/this-week-in-past.git
Step 2: Install Node.js packages
Now, navigate to the cloned "this-week-in-past" directory and install the required Node.js packages using NPM:
cd this-week-in-past
sudo npm install
Step 3: Test the installation
After installing the packages successfully, run the following command to verify that the installation is done correctly and to check the top historical events that happened on the current week:
npm start
If everything is okay, you should see a list of historical events in the terminal.
Step 4: Create a shortcut command for This Week in Past
Lastly, create a shortcut command for This Week in Past by updating your Linux profile file e.g., .bashrc or .zshrc. You can modify it with the text editor you wish, for example:
nano ~/.bashrc
And then add the following new line at the end of the file:
alias this-week-in-past="cd ~/this-week-in-past && npm start"
After that, save the changes and execute the following command to make it effective in the current terminal:
source ~/.bashrc
Conclusion
Now you have successfully installed the This Week in Past tool on your Debian latest machine. You can use the shortcut command "this-week-in-past" to access the top historical events that happened on the current week.