Git Product home page Git Product logo

fake-terminal-website's Introduction

Fake Terminal Website (FTW)

A fully customizable terminal-like-website

Preview

You can preview a live demo here with a raw FTW template or my personal website that also uses this template.

Desktop

Screenshot of the application running on a desktop device

Mobile

Screenshot of the application running on a mobile device

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.

Resources

Notes

I strongly ask you a favor: PLEASE use an obfuscator tool for the JS file, that way people won't be able to copy your website's version JS and the only way that they can use the template is by visiting this repository. This obfuscator, provided by DaftLogic, looks really great and is the one used for my personal one.

Authors

  • Luís Bragança - Mostly everything

fake-terminal-website's People

Contributors

luisbraganca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fake-terminal-website's Issues

Text in various colors

Hi! First, great job, it's a great fake terminal. My question is:
Can you make the text that appears when you execute a command appear in several colors (and with the effect of appearing letter by letter)?
I've been trying and I'm not able ...
Thank you very much!

Entering invalid text causes an error

Echoing something like cat about will cause a str not found error.

My cheap fix was just to add a default to text, but there's probably a better way.

Terminal.prototype.type = function (text = "I can't let you do that, Tom.", callback) { this.typeSimulator.type(text, callback); };

Make sidebar move platform

Instead of having the side menu be transparent, could it move the terminal to the side instead? This would make it look much better in my opinion

Removing NavBar picture breaks the terminal

Removing the line
<img id="profilePic" alt="An avatar that aims to represent the website owner" src="./img/avatar.png">
in index.html prevents the javascript from running and navbar from opening

Ctrl + C support

It would be nice to be able to do CTRL + C like on a real terminal

[Feature Request] File tree and navigation.

Hello there, lovely project you got there. I was wondering if it would be possible for you to make cd command actually usable. Perhaps add mkdir and allow users to make fake directories. Or even better make a file tree structure that's written in the main.js file.

Much love.

Feature request

Hello,

I'm MB. A very nice and polite guy.

The font looks good and I like the way the text wraps at the right side of the screen at mobile. Love that.

Can you make a version without the sidebar and without the typewriter effect please?

It's all client side, right?

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.