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.localfile and Copy all the contents of.env.exampleand paste into.env.localfile that you created.After that update yourenv variablelikeVITE_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 installOr
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 enableand hit enter. - then
npm install --global yarn
Linux
- open terminal and hit
npm install --global yarn
MacOS
- open terminal and hit
npm install --global yarnorbrew 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:
GitReadruns 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 devor 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 buildor if you installed dependencies using npm use below command
npm run build
Use the following command to preview:
yarn run previewor if you installed dependencies using npm use below command
npm run preview