Skip to content

Roshan-Horo/gitread

Repository files navigation

Introducing GitRead

It's a tool for reading github code in the brower using Monaco editor. It helps to skimming the codebase with ease and have features like multiple open files.

Live Demo

Here is the link for the live demo, give it a try

GitRead

How to Set up GitRead for Development?

🍴 Fork and Clone the Repo

First, you need to fork the GitRead repo. You can do this by clicking the Fork button on the top right corner of the repo. If you are new to forking, please watch this YouTube Guide to get started.

Once forked, you can clone the repo by clicking the Clone or Download button on the top right corner of the forked repo.

Please change the directory after cloning the repository using the cd <folder-name> command.

Note: Create a .env.local file and Copy all the contents of .env.example and paste into .env.local file that you created.After that update your env variable like VITE_GITHUB_TOKEN. If you don't know how to get token follow this article.

Install Dependencies

Next, install the dependencies by running the following command in the gitread repo. we recommend using yarn but you can install using npm too

yarn install

Or

npm install

if you don't have yarn installed on your PC, follow the steps below to install it..

Windows

  1. open your command prompt as administrator.
  2. write corepack enable and hit enter.
  3. then npm install --global yarn

Linux

  1. open terminal and hit npm install --global yarn

MacOS

  1. open terminal and hit npm install --global yarn or brew install yarn

Or Download Package If you are unable to install yarn following the above-mentioned process, then you can simply download the package and install it. Visit the official website of Yarn; there you can just expand the "Alternative" section and it will ask for the version to download for Windows, Linux, or Mac. https://classic.yarnpkg.com/en/docs/install#windows-stable

Note: GitRead runs on React 18. However, some of our dependencies are yet to upgrade to version 18. So please use the following command when you face difficulties installing the dependencies. Also, ensure to use Node.js version >= 16.x

Start the Development Mode

Use the following command to start the app in the development mode:

yarn run dev

or if you installed dependencies using npm use below command

npm run dev

It runs the app in development mode. Open http://localhost:5173 to view it in your browser.

The page will reload when you make changes.

Checks before creating PR

Check it should build successfully

Use the following command to build the project:

yarn run build

or if you installed dependencies using npm use below command

npm run build

check the production preview

Use the following command to preview:

yarn run preview

or if you installed dependencies using npm use below command

npm run preview

About

GitRead is a tool for reading github code in a monaco editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published