This is a Rails 7 sample project for educational purposes.
It is a simple project dealing with customers, products, orders and line items.
This app is deployed publicly here.
- Download or clone this repository
- Run
bundle install --without production
in project directory - Run
rails db:migrate
in project directory - Run
rails runner db/populate_with_fake_data.rb
to generate some fake data to work with. This can take a while because product pictures are being downloaded. - Run
rails server
in project directory - Visit
http://localhost:3000
- Download or clone this repository
- Run
docker-compose up
in project directory. This will build the necessary images for the PostgreSQL database and the Rails app and start them. - Run
docker-compose run web rails db:create
in project directory. - Run
docker-compose run web rails db:migrate
in project directory. - Run
docker-compose run web rails runner db/populate_with_fake_data.rb
in project directory to generate some fake data to work with. This can take a while because product pictures are being downloaded. - Visit
http://localhost:3000