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.
Here is the link for the live demo, give it a try
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 yourenv variable
likeVITE_GITHUB_TOKEN
. If you don't know how to get token follow this article.
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
- open your command prompt as administrator.
- write
corepack enable
and hit enter. - then
npm install --global yarn
Linux
- open terminal and hit
npm install --global yarn
MacOS
- open terminal and hit
npm install --global yarn
orbrew 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
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.
Use the following command to build the project:
yarn run build
or if you installed dependencies using npm
use below command
npm run build
Use the following command to preview:
yarn run preview
or if you installed dependencies using npm
use below command
npm run preview