A full-stack Ruby on Rails e-commerce app using Hotwire for real-time updates, Tailwind CSS for styling, Stripe for secure payments, PostgreSQL for the database, and Devise for user authentication.
Ecomm is a full-stack Ruby on Rails 7 e-commerce application with seamless checkout functionality, user authentication, and modern styling. It is powered by Hotwire, Stimulus, and Tailwind CSS for interactivity and design. Stripe handles the payment processing, PostgreSQL serves as the database, and Devise manages user authentication.
Ensure you have the following installed:
Clone the repository:
git clone https://github.com/your-username/ecomm.git
cd ecomm
Install dependencies:
bundle install
Set up PostgreSQL:
bin/rails db:create
bin/rails db:migrate
Seed the database (optional):
bin/rails db:seed
Edit Rails credentials to store your Stripe API keys securely:
EDITOR="code --wait" bin/rails credentials:edit
This will open the credentials file in VSCode (or your preferred editor). Add your Stripe keys in the following format:
stripe:
secret_key: your_stripe_secret_key
public_key: your_stripe_public_key
Once the keys are added and saved, Rails will securely manage them using encrypted credentials.
Run the Rails server:
rails s
Navigate to the app in your browser:
Open http://localhost:3000
and http://localhost:3000/admin
to see the application in action.
User Authentication:
Checkout:
Contributions are welcome! Please follow these steps:
git checkout -b feature-name
git commit -m "Add feature"
git push origin feature-name
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries, feel free to reach out: