# Existing Projects

The majority of the Sage documentation focuses on setting up new themes. Use this document If you are collaborating on, or taking over an existing theme.

# Getting started

If you've never worked on a Sage project before, make sure your local development environment is configured by following the Getting Started guide(s).

# Gathering information

To work on an existing Sage project you need to know what version of Sage you're working with. You can usually find this by checking the package.json file:

  "name": "sage",
  "version": "9.0.5",

If your package.json file doesn't contain the Sage version number, look for a bower.json file. If this file exists, it's safe to assume you're working with Sage 8. Otherwise assume you're working with Sage 9.

# Set up your development environment

Prepare your development environment based on what version of Sage you're working with. For Sage 9:

Set Node.js version with nvm:

$ nvm install --lts

Install Composer dependencies:

$ composer install

Install Node dependencies:

$ yarn

Build your project:

yarn build