- Ruby version: 2.7.2
- Devise gem
- Stripe gem
- Money-rails gem
- This app integrates with Stripe to process payment, creating the relations between local DB (postgresql) and Stripe DB (user, products).
- When a new user signs up, a stripe user id is also created to maintain purchases history on the site
- When a new product is created, a stripe product also gets created o maintan a relation between the two DB
- When a price gets updated, a new price gets created in Stripe and is related to the product
- Discount Coupons are also supported
- Keep in mind this is only a functional app for practice purposes, so no front-end effort was applied
- To get started with the app, clone this project by running
git clone [email protected]:MiguelArgentina/shoplify.git
- cd into the directory and run
bundle install
to install the gems and dependencies - Execute
rails db:create
to create the DB - Execute
rails db:migrate
to run all the migrations - Execute
rails s
to run the server - Visit http://localhost:3000/ in your browser to view the app.
- To terminate the server, enter
Ctrl + C
in your terminal
👤 Miguel Ricardo Gomez
- GitHub: @MiguelArgentina
- Twitter: @Qete_arg
- LinkedIn: Miguel Ricardo Gomez
Give a ⭐️ if you like this project!
- This app was created following this video tutorial by Yaroslav Shmarov.
- His blog has really useful content.
Available as open source under the terms of the MIT License.