Skip to content

Fullstack E-Commerce: Ruby on Rails 7, Hotwire, Tailwind, Stripe, PostgreSQL by Conner Jensen

Notifications You must be signed in to change notification settings

Deborah-McVey/ecommerce

Repository files navigation

"Fullstack E-Commerce: Ruby on Rails 7, Hotwire, Tailwind CSS, Stripe, PostgreSQL" by Conner Jensen

https://www.youtube.com/watch?v=hURUMwdCWuI&t=5516s

rails new ecommerce --css tailwind

font awesome

Stripe - checkout

Devise - authentication

PostgreSQL - database

Render - deployment

https://github.com/connerj70/ecomm

Gemfile gem 'Devise' bundle i rails g devise:install

Depending on your application's configuration some manual setup may be required:

  1. Ensure you have defined default url options in your environments files. Here is an example of default_url_options appropriate for a development environment in config/environments/development.rb:

    config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }

    In production, :host should be set to the actual host of your application.

    • Required for all applications. *
  2. Ensure you have defined root_url to something in your config/routes.rb. For example:

    root to: "home#index"

    • Not required for API-only Applications *
  3. Ensure you have flash messages in app/views/layouts/application.html.erb. For example:

    <%= notice %>

    <%= alert %>

    • Not required for API-only Applications *
  4. You can copy Devise views (for customization) to your app by running:

    rails g devise:views

    • Not required *

app/assets/stylesheets/application.css.scss application.tailwind.css @import 'font-awesome' home_controller.rb app/views/home/index.html.erb

localhost:3000 is home

rails g devise Admin rails db:migrate http://localhost:3000/admins/sign_in

rails c Admin.create(email: "[email protected]", password: "password")

admin_controller.rb

app/views/admin/index.html.erb

http://localhost:3000/admin

app/views/layouts/admin.html.erb

bin/dev (to run the class updates in html)

localhost:3000/admin