A modern Linux-style interactive portfolio built with Svelte, Javascript, and CSS.
Command | Description |
---|---|
about |
Display about me information |
contact |
Show contact information |
calc 7 + 3 |
Run calculator |
home |
Show homescreen |
neofetch |
Show a specification |
projects |
List of projects |
clear |
Clear terminal |
help |
Show available commands |
Clone repository:
git clone https://github.com/zulhaditya/porterminal.git
cd porterminal
Install dependencies:
npm install
Run development server:
npm run dev
Build for production:
npm run build
Create new file in src/commands/
:
<!-- MyCommand.svelte -->
<script lang="ts">
export let args: string[] = [];
</script>
<div class="command-output">
Your command output here
</div>
Register command in Terminal.svelte
:
const commands = {
// ...
mycmd: MyCommand
};
Edit src/app.css
:
:root {
--primary: #4af626; /* Terminal green */
--bg: #1e1e1e; /* Background color */
}
Run test suite:
npm test
git checkout -b feature/latest-feature
)git commit -m 'Add latest feature'
)git push origin feature/latest-feature
)