Skip to content

A fake terminal that has a working file system, js execution, and is easily extendable

License

Notifications You must be signed in to change notification settings

mfish33/Fake-Terminal

Repository files navigation

Fake Terminal Website (FTW)

Modified version of Fake Terminal Website https://github.com/luisbraganca/fake-terminal-website by Luís Bragança

Features

  • Full File System
  • ng build and deploy redirects to desired site
  • can write and execute js files in terminal

Preview

You can preview a live demo here

Desktop

Screenshot of the application running on a desktop device

Mobile

Screenshot of the application running on a mobile device

From Bragança Github

Technical details

This tool allows you to build your own website that looks like a terminal/console. To make this possible, it was implemented in a dynamic way. All you have to do is to configure a few things here and there and you have your own version.

Functionalities

  • Fully generic website easy to customize according to the user's needs
  • TAB autocompletion support
  • A few linux-like possible commands
  • Typewriter effect when showing a command result
  • Possible to skip the typewriter effect by doubleclicking anywhere
  • Sidenav with all the files to make it easy for people with no know-how to navigate through your website
  • Since the website is generic enough, you're able to create a language-checker function and associate different texts according to the user's browser language (my website version has support for both portuguese and english languages).

Future (TODO) functionalities

  • History navigation using Up and Down arrows
  • Ask for a password when using sudo command
  • email or similar command that allows the visitor to send an email directly to the website owner

Limitations

  • No support for internet explorer, showing the message NOTE: I see you're using internet explorer, this website won't work properly.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

This template was built using Visual Studio Code but since it's a static webpage, you can even use the pre-installed windows notepad.

Configuring the website

Before you deploy the website, consider changing the following:

  • Go to js/main.js and replace all the text on both singleton vars:
    • configs: Contains all the text used on the website plus a few configurations.
    • files: All the fake files used on the website. These files are also used to be listed on the sidenav. Also please notice if a file content is a raw URL, when clicked/concatenated it will be opened on a new tab.
  • The page title on the index.html file.
  • The website color on the css/main.css file.
  • The images located at the img folder. The suggested sizes are 150x150 px for the avatar and 32x32/16x16 px for the favicon.

About

A fake terminal that has a working file system, js execution, and is easily extendable

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published