#Very first steps on an existing repo

5 messages · Page 1 of 1 (latest)

agile summit
#

I want to improve an existing website which uses astro, they have hosted their site codeberg.org.

Using VS Code, I managed to clone their repository and edit an mdx file.

How can I get a preview of the edited webpage?

I haven't done any web dev yet, I just want to improve some documentation.

Is VS code even a reasonable thing to edit with? Are there setup extra setup steps to make Astro work?

wispy drum
#

Usually after cloning a repository with an Astro site you need the following steps to get a local preview:

  1. Install dependencies. This is most commonly done by running npm install in the repo in the terminal, but can also be pnpm install or yarn if the project uses one of those package managers.

  2. Start Astro’s dev server. This would be npm run dev (or pnpm dev or yarn dev depending on their package manager). That will give you a preview of the site that live updates as you make changes.

There can also be more that’s specific to a project, but those two should get you up and running in most cases.

agile summit
#

It looks like they are using pnpm and I am now in the process of making that work

#

thank you for the helpful pointers!

agile summit