Coder Social home page Coder Social logo

cveinnt / liveterm Goto Github PK

View Code? Open in Web Editor NEW
4.6K 32.0 501.0 7.18 MB

πŸ’» Build terminal styled websites in minutes!

Home Page: https://liveterm.vercel.app

License: MIT License

JavaScript 2.89% Shell 10.62% TypeScript 83.32% CSS 2.31% Dockerfile 0.87%
nextjs personal-website terminal typescript vercel website-template

liveterm's Introduction

Highly customizable, easy-to-use, and minimal terminal styled website template, powered by Next.js.

Building a simple website with LiveTerm only takes minutes, and you only need to work with one file: config.json. After you cloned this repository, simply run yarn install && yarn dev and start editing config.json to build your website!

LiveTerm can be used to build a variety of websites:

Feel free to play with the web demo above!

πŸ“Έ Showcase


LiveTerm with different themes


my personal website

πŸš€ Ship your LiveTerm site in less than 5 minutes

LiveTerm requires the yarn package manager. You can install yarn here.

Simply run the following commmand in your terminal:

sh -c "$(curl -fsSL https://raw.github.com/Cveinnt/LiveTerm/main/install/install.sh)"

This will install LiveTerm to the current directory. You can start building your website with:

cd LiveTerm && yarn dev

Start editing config.json and try saving and see the updated changes!

Alternatively, you can clone this repository to a location of your choosing

git clone https://github.com/Cveinnt/LiveTerm.git && cd LiveTerm

Then install dependencies and start developing there:

yarn install && yarn dev

Docker Usage

First, clone the project and edit config.json to your liking. Then run the following to start the container in the background:

docker-compose up -d

If you know what you were doing, you can also try changing Dockerfile & docker-compose.yml! Learn more about Docker here.

πŸ“„ Configuration

Basic Configuration

90% of LiveTerm's configurations are done through the config.json file.

{
  "readmeUrl": // create a Github README and link it here!
  "title": // title of the website
  "name": // your name, included in 'about' command
  "ascii": // ascii art to display
  "social": {
    "github": // your handle
    "linkedin": // your handle
  },
  "email": // your email
  "ps1_hostname": "liveterm" // hostname in prompt
  "ps1_username": "visitor", // username in prompt
  "resume_url": "../resume.pdf", // path to your resume
  "non_terminal_url": "W",
  "colors": {
    "light": {
      ...
    },
    "dark": {
      ... // you can use existing templates in themes.json or use your own!
    }
  }
}

Feel free to change it as you see fit!

Themes

You can find several pre-configured themes in themes.json, and you can replace the colors in config.json with the theme color you like! The themes are based on the themes on this website.

For a better preview of the themes, checkout the images in the demo folder.

Favicons

Favicons are located in public/, along with the other files you may want to upload to your website. I used this website to generate favicons.

Banner

You may also want to change the output of the banner command. To do that, simply paste your generated banner in src/utils/bin/commands.ts. I used this website to generate my banner.

Advanced Configuration

If you want to further customize your page, feel free to change the source code to your liking!

🌐 Deploy on Vercel

The easiest way to deploy a Next.js app is to use the Vercel Platform from the creators of Next.js.

You can install vercel cli and follow the instruction here.

You can also connect your github account to vercel and have vercel automatically deploy the github repository for you.

Credit

Based on M4TT72's awesome Terminal.

liveterm's People

Contributors

cveinnt avatar diggajupadhyay avatar mjh316 avatar woooferz 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

liveterm's Issues

Error when i run yarn dev

$ next dev
/root/LiveTerm/node_modules/react-dom/cjs/react-dom-server.browser.development.js:145
var textEncoder = new TextEncoder();
^

ReferenceError: TextEncoder is not defined
at /root/LiveTerm/node_modules/react-dom/cjs/react-dom-server.browser.development.js:145:19
at Object. (/root/LiveTerm/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6733:5)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/root/LiveTerm/node_modules/react-dom/server.browser.js:9:7)

Social icons

Hello - how did you generate the social icons on the sumfetch screen? I'd like to add Twitter.

Mobile scaling

Opening a liveterm website on a mobile device results in bad scaling, weird scrolling and zooming.

Rendering Issue with ascii-image

Hey there

I set up a Personal Homepage with the intention of including a LiveTerm feature and an ASCII image. However, there seems to be a problem when using Chrome on a MacBook, although it works fine when using Firefox on the same MacBook.

image
image

more terminal feature

Will this repo support multi-line feature in future? For example:

java -Xmx1024M -Xms1024M \
    -jar minecraft_server.1.18.2.jar \
    nogui 

(Maybe this is a little complex, I am trying to add a command parser but failedπŸ˜₯)

echo command could expose app for script injection sort of...

if you write echo <a href="https://www.google.com"> this is link </a> on your app, it will show this is link that redirect you to google... I was not able to run javascript code but I can see it could potentially lead to script injection. Or may be it's not that big of a deal... I am not sure ...

Could've forked?

Was there something with the original project that prevented you from forking and creating a PR? It could have been a collaborative effort to make Terminal a better project for all, instead of taking it a different route by copying the repo, making minor esthetic modifications and pushing it as your own.

"searching google for"

when Itry to search something in any of the commands // Search
always the return is "searching for..."

how can I fix this?

Error 21

Hello,
I got this error: ERROR: [Errno 21] Is a directory: 'install'
And if I move install.sh at the root I got: ERROR: There are no scenarios; must have at least one.

Thanks

Sumfetch emotes

Where did you get the sumfetch emotes? And what encode can I use to read it?

banner

could not find where to edit banner found it in the comments

Can u pls help me

I am trying to do this but im on windows and i got no idea how docker works

Issue on install using docker compose

I receive this error upon launching of the website via a browser, this is on the default docker install as shown in the readme:

Failed to compile

./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[2]!./src/styles/global.css
SyntaxError: /home/node/app/config.json: Unexpected token } in JSON at position 160
at parse ()

This error occurred during the build process and can only be dismissed by fixing the error.

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.