Coder Social home page Coder Social logo

ihindha / yags Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prettycoffee/yet-another-generic-startpage

0.0 0.0 0.0 4.05 MB

This a generic startpage to demonstrate the react startpage library.

License: MIT License

JavaScript 3.77% TypeScript 89.65% CSS 4.40% HTML 1.77% Dockerfile 0.41%

yags's Introduction

Yet another generic startpage

preview

A startpage with a generic layout and many settings to modify the appearance.

Demo

Usage

There are several options for using this startpage.

Fast setup

The easiest way to set it up is using the repositories demo with one of the many new tab override extensions like this one for firefox or this one for chrome.

Install the extension and set https://prettycoffee.github.io/yet-another-generic-startpage/ as new tab url.

Local Setup with Mini Yags

You can extract your startpage design into static files for local use by downloading a Mini-YAGS version.

To create a Mini-YAGS copy:

  1. Open the Demo
  2. Click on the arrows in the top right corner
  3. Design your startpage
  4. Scroll down to the Mini-YAGS section and click on Zip me a copy!
  5. Extract the files in the zip on your local system

To apply it for new tabs, install one of the the new tab override extensions and set file:///C:/path/to/your/mini-yags/index.html as new tab url.

Github Pages with Mini Yags

Required Knowledge: git, github

You can host your Mini Yags copy with github pages as well, to have it online. To do that, create your Mini Yags copy as explained before.

Then follow these steps:

  1. Create a repository
  2. Push all the files of your Mini Yags copy into the repository, commit and push
  3. Open the repository settings on Github
  4. Open the Pages section from the navigation on the left hand side
  5. Select for Source -> Deploy from branch and for Branch -> master (or main) and /(root)
  6. Click on save

The startpage should now be hosted on github pages, it may take some minutes to finish the deployment. The url will be <user-name>.github.io/<repo-name>.

Note: This setup may change over time, if Github changes things, but the idea should stay the same.

Full startpage (no Mini Yags)

Required Knowledge: git, github, npm, node

Instead of building a Mini Yags copy you can also host your own copy of the full startpage, including the settings window. This will allow you to customize the startpage later on.

To set it up with github pages:

  1. Fork the repository in github

  2. Clone it to your local machine

  3. Run npm i and npm run build in the project directory

  4. Deploy it on Github pages with one of the following methods:

    • Use the deploy script:
      1. Run npm run deploy, this will create a gh-pages and push the required files into the branch
      2. Select the gh-pages branch as the source branch in the pages settings
    • Make the setup manually:
      1. Copy the files from the /build directory into a new branch
      2. Push the branch to your repository
      3. Select the branch as the source branch in the pages settings
  5. Use the github pages link (<user-name>.github.io/<repo-name>) in the browser extension.

Others

There are several other options:

  • Docker: If you are familiar with Docker, a Dockerfile and docker-compose.yml are included in the repo.

    # build
    $ docker build ./ -t yags
    
    # run
    $ docker run -d --name yags -p 8080:80 yags
    
    # Alternative: Compose
    $ docker compose up -d
    
  • Web extension: You can set up the startpage as a web extension itself which would replace the installation of the extensions used above.

  • Local nginx server: Set up a local nginx server

Advanced: Modify code

If you want to modify something because the feature is missing, you can either create a Mini Yags copy and work with good old classic HTML/JS/CSS or you can fork the repo and change the react code.

yags's People

Contributors

prettycoffee avatar dependabot[bot] avatar

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.