Skip to content

Sample app from Rails Guides

Notifications You must be signed in to change notification settings

thais-falbo/store

Repository files navigation

Store Application

Overview

This is a Ruby on Rails store application made from the Rails Guide 8.0.0.

Prerequisites

  • Ruby 3.2.2
  • Rails 8.x
  • PostgreSQL 14.x

System Dependencies

  • Node.js 18.x or later
  • Yarn 1.22.x or later

Getting Started

Installation

  1. Clone the repository
git clone [your-repository-url]
cd store
  1. Install dependencies
bundle install
yarn install
  1. Database Setup
rails db:create
rails db:migrate
rails db:seed # if you have seed data

Configuration

  1. Copy the example environment file
cp .env.example .env
  1. Set up your environment variables in .env

Running the Application

rails server

Visit http://localhost:3000 in your browser

Testing

The application uses rails-rspec for testing. To run the test suite:

rails spec