google-clone-frontend
A Google clone that searches for Wikipedia Articles based on a Terminal simulation
Access the website deployed: Link to Website
Or deploy locally:
yarn
# or
npm installnpx quasar devTo learn more about the "backend", follow the backend repository
The CommandController implements a Command Pattern.
To create more commands, create a new _____Command.ts inside the ./src/models/Commands folder following the Terminal Command Abstract Class implementing these main objects/functions:
function execute(): void { }
function break(): void { }
config: CommandConfig = {
title: 'TITLE',
description: 'DESCRIPTION',
usage: ['CMD [OPTIONS] <QUERY>'],
options: [
{
minified: 'MINIFIED OPTION',
normal: 'NORMAL OPTION',
description: 'OPTION DESCRIPTION',
default: 'DEFAULT VALUE',
type: CommandTypes.TYPE,
required: REQUIRED,
},
],
};And add this new command on ./src/models/CommandsFactory.ts commands array:
static commands: { [k: string]: any } = {
[...]
echo: EchoCommand,
clear: ClearCommand,
____: _____________
};