Skip to content

A personal website styled as a working linux terminal.

License

Notifications You must be signed in to change notification settings

carlegbert/egbc.io

Repository files navigation

A mock linux terminal written in plain typescript serving as a personal website.

This project has been a learning laboratory of sorts for me. I began it before I got my first job writing software, and at that time it was a fun and interesting challenge to figure out how to make a web page act kind of like a shell without using any third-party libraries. I occasionally come back and try to clean things up a little, although ultimately the code is a bit of a mess and it's hard to justify spending the time it would take to fix it.

building

  • npm ci
  • to run the dev server: npm run start (page served at localhost:1234)
  • for an optimized build: npm run build

running tests

In order to run the UI tests, you will need Google Chrome installed, and to have the chromedriver binary in your PATH variable. You will also need to be running the dev server.

  • To run unit tests: npm run test
  • To run ui tests: npm run test:ui
  • To run both: npm run test:all

current working commands/features

  • pwd
  • whoami
  • clear
  • cd
  • ls
  • touch
  • mkdir
  • cat
  • history navigation with up and down arrows
  • echo
  • redirect with >, >>
  • tab autocompletion

partially working:

  • vi

possible future goals:

  • lots of refactoring
  • pipe operator
  • redirecting from file

About

A personal website styled as a working linux terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published