> ## Documentation Index
> Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Installing Spree

> Follow the instructions below to learn how to build and deploy your Spree application.

## Installation options

<Tabs>
  <Tab title="create-spree-app">
    The quickest way to get started. Scaffolds a full Spree project with Next.js Storefront (optional).

    **Requirements:** [Node.js](https://nodejs.org/) 20+ and [Docker](https://docs.docker.com/get-docker/) running.

    ```bash theme={"theme":"night-owl"}
    npx create-spree-app@latest my-store
    ```

    The CLI walks you through an interactive setup:

    1. Choose **Full-stack** (Backend + Next.js Storefront) or **Backend only**
    2. Optionally load **sample data** (products, categories, images)

    Once complete, your store should be running at [http://localhost:3000/admin](http://localhost:3000/admin). The port can be different if `3000` is already used on your system.

    See the full [create-spree-app documentation](/developer/create-spree-app/quickstart) for all CLI flags and options.
  </Tab>

  <Tab title="Manual Installation">
    For developers who prefer full control over the setup, or want to add Spree to an existing Rails application.

    1. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/)
    2. Install [vips](https://www.libvips.org/install.html) for image processing
    3. Install Rails gem:
       ```bash theme={"theme":"night-owl"}
       gem install rails
       ```
    4. Create a new Spree application:
       ```bash theme={"theme":"night-owl"}
       rails new my_store -m https://raw.githubusercontent.com/spree/spree/main/spree/template.rb
       ```
       To use a specific database, pass the `-d` flag:
       ```bash theme={"theme":"night-owl"}
       rails new my_store -d postgresql -m https://raw.githubusercontent.com/spree/spree/main/spree/template.rb
       rails new my_store -d mysql -m https://raw.githubusercontent.com/spree/spree/main/spree/template.rb
       ```
    5. Navigate to the application directory:
       ```bash theme={"theme":"night-owl"}
       cd my_store
       ```
    6. Start the development server:
       ```bash theme={"theme":"night-owl"}
       bin/dev
       ```
    7. Optionally load sample data (products, categories, etc.):
       ```bash theme={"theme":"night-owl"}
       bin/rails spree_sample:load
       ```

    <Info>
      Spree works with **PostgreSQL**, **MySQL**, and **SQLite** databases. The Rails template defaults to SQLite for quick setup. You can switch to PostgreSQL or MySQL at any time. [Learn more about database configuration](/developer/deployment/database).
    </Info>
  </Tab>
</Tabs>

## Accessing Admin Panel

Navigate to [http://localhost:3000/admin](http://localhost:3000/admin) and log in with the default credentials:

|              |                     |
| ------------ | ------------------- |
| **Email**    | `spree@example.com` |
| **Password** | `spree123`          |

Upon successful authentication, you should see the admin screen:

<Frame caption="Spree Admin Dashboard">
  <img src="https://mintcdn.com/spreecommerce/cQFxCIv2IPZLev6h/images/spree_admin_dashboard.png?fit=max&auto=format&n=cQFxCIv2IPZLev6h&q=85&s=effae741cd385f1dd8618eedd326449c" width="3024" height="1576" data-path="images/spree_admin_dashboard.png" />
</Frame>

***

Congrats! You've set up your Spree Commerce and it's looking amazing!

Give Spree a [GitHub Star](https://github.com/spree/spree)<Icon icon="star" iconType="solid" color="#FFD43B" />, why dont't ya? Thank you for supporting Spree open-source! <Icon icon="heart" iconType="solid" color="#FF0000" />

Need support or want to give some feedback? Join our [Discord](https://discord.spreecommerce.org/)
