open-sauced / intro

Empowering Your Open Source Journey: From First Contribution to Project Leadership
https://opensauced.pizza/learn
Other
539 stars 110 forks source link

Using Codespaces and Gitpod #55

Closed CBID2 closed 12 months ago

CBID2 commented 1 year ago

Type of feature

🍕 Feature

Current behavior

After helping @RitaDee with her contribution, I noticed that setting up the development environment was a bit difficult (e.g., viewing the docs site locally did not work). Since Hacktoberfest is starting Sunday, it's crucial for contributors, especially those who are new to open source, to have a somewhat easy way to get started.

Suggested solution

Adding links to GitHub Codespaces and Gitpod would be very helpful. It'll make it easier for contributors to step up their coding environment in a quicker fashion and to start contributing.

Additional context

No response

Code of Conduct

Contributing Docs

BekahHW commented 1 year ago

@CBID2 what methods were attempted to get it running? And what errors were you running into?

CBID2 commented 1 year ago

@CBID2 what methods were attempted to get it running? And what errors were you running into?

@BekahHW, the docsify serve command didn't work and the dependencies were missing, so I suggested Rita to use Gitpod and things were fine from there.

BekahHW commented 1 year ago

@CBID2 can you create a bug report or include the error message here? I think we should tackle the error before adding anything else.

Did you use the README directions for how to run the project? npm ci, npm start?

CBID2 commented 1 year ago

@CBID2 can you create a bug report or include the error message here?

@BekahHW, this happened on @RitaDee's computer so I think she can show that information.

RitaDee commented 1 year ago

@CBID2 what methods were attempted to get it running? And what errors were you running into?

I ran npm ci and npm start initially but got the error below:


npm ERR! 
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run```
RitaDee commented 1 year ago

@CBID2 what methods were attempted to get it running? And what errors were you running into?

@BekahHW, the docsify serve command didn't work and the dependencies were missing, so I suggested Rita to use Gitpod and things were fine from there.

The "docsify serve" command didn’t work on my device. Here is the screenshot:

image
nickytonline commented 1 year ago

@RitaDee and @CBID2, the main docs repository uses Docusaurus and not docsify.

If you run

npm ci
npm start

everything will load up.

CleanShot 2023-09-27 at 17 06 32

CleanShot 2023-09-27 at 17 16 39

RitaDee commented 1 year ago

@RitaDee and @CBID2, the main docs repository uses Docusaurus and not docsify.

If you run

npm ci
npm start

everything will load up.

CleanShot 2023-09-27 at 17 06 32

CleanShot 2023-09-27 at 17 16 39

The error I encountered was on the intro repo (https://github.com/open-sauced/intro). I observed it has no package.json file. I suspect that could be the issue. What do you think @nickytonline?

nickytonline commented 1 year ago

Sorry for the confusion as this issue is in the docs repository. The issue appears to be that docsify isn't installed globally on your machine. I'm going to transfer this issue over to that repository instead.

nickytonline commented 1 year ago

@BekahHW, it looks like the README doesn't mention installing docsify globally, i.e. npm install docsify -g. That's one way to run it or you can create a package.json and add docsify as a dependency and have a command like npm start that runs docsify.

BekahHW commented 1 year ago

Ok, I need to clarify here. Where is the issue? In the Intro course or the docs?

For the intro course, we have a contributing guide PR that will have directions for docsify or how to use Go Live in VS code.

If the issue is in the docs repo, then docsify won't work there, as Nick mentioned it uses docusaurus so you have to run npm ci and npm start.

nickytonline commented 1 year ago

Thanks for chiming in @BekahHW. If there's a PR up for how to use docsify, awesome.

CBID2 commented 1 year ago

Thanks for clarifying @nickytonline. I mentioned this as a reason to implement links to Codespaces and Gitpod. Is that still a possible suggestion?