Code Monkey home page Code Monkey logo

waroong's Introduction

Waroong!

Waroong is an open-source e-commerce solution based on Ruby on Rails 7.

Screenshot

Tech Stack

  • Ruby 3.x
  • Ruby on Rails 7.x
  • PostgreSQL 9.5
  • Esbuild
  • Twitter Bootstrap 5
  • Stripe
  • Gem:
    • devise | Authentication
    • pg | PostgreSQL library for Ruby

Installation

Requirements

Before you get started, the following needs to be installed:

  • Ruby. Version 3.1.0 is currently used and we don't guarantee everything works with other versions. If you need multiple versions of Ruby, rbenv is recommended.
  • RubyGems
  • Bundler: gem install bundler
  • Git
  • A database. Only PostgreSQL 9.5 has been tested, so we give no guarantees that other databases (e.g. MySQL) work. If you're using OS X and have Homebrew installed, install it with brew install postgresql

Setting up the development environment

  1. Get the code. Clone this git repository:
git clone git://github.com/omkz/waroong.git
cd waroong
  1. Install the required gems by running the following command in the project root directory:
bundle install
  1. Setup the database:
bundle exec rails db:setup
  1. Start the development server:
bin/dev

If you want to contribute

The best way to contribute is to do one of the following :

  • Creating tests
  • Refactoring
  • Coding features
  • Correcting logged issues
  • Correcting my English! (I'm an Indonesian, so don't hesitate to fix my sentences or whole paragraphs.)

License

Waroong is open source under the MIT license. See LICENSE for details.

waroong's People

Contributors

omkz avatar

Stargazers

개발하는 정대리 avatar Denisio_Velozo avatar Anıl Şen avatar  avatar Denise Dee "Ise" De Jesus avatar Mezbah Alam avatar Garfield Linden avatar Manuel Gonçalves avatar Ali Umair avatar Azamat Shaimerden avatar VitamiN avatar N7A9O7K0I9 avatar João Marcos avatar  avatar  avatar Hassan Mohammed avatar  avatar teabolt avatar  avatar Tim Uckun avatar

Watchers

 avatar James Cloos avatar

waroong's Issues

OrderStatus blank?

How am I supposed to populate the OrderStatus table? I'm trying to process an order using stripe, but it is expecting the class to be populated:

def create
@order = OrderItem.where("product_id = ? AND order_id = ?", params[:order_item][:product_id], session[:order_id]).first
if @order
@order.update(quantity: @order.quantity + params[:order_item][:quantity].to_i)
@order.save
else
@order = current_order
@order.order_items.new(order_item_params) do
@order.order_status_id = 1
end
@order.save
session[:order_id] = @order.id
end

OrderItem is blank, I'm guessing, because this is the first order in the system. current_order is also blank, which seems strange. @order has an order_status_id of "1", which should map to OrderStatus(1), but there's nothing in OrderStatus yet, which is mind-boggling. Thanks in advance for any help.

Login action gives 401 error

Hi there.
Sign up is working, I can check via console that user is created, but when I'm trying to log in there is:

12:51:53 web.1  | Started POST "/users/sign_in" for ::1 at 2022-06-17 12:51:53 +0200
12:51:53 web.1  | Processing by Devise::SessionsController#create as TURBO_STREAM
12:51:53 web.1  |   Parameters: {"authenticity_token"=>"[FILTERED]", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
12:51:53 web.1  |   User Load (6.9ms)  SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "[email protected]"], ["LIMIT", 1]]
12:51:53 web.1  | Completed 401 Unauthorized in 423ms (ActiveRecord: 97.2ms | Allocations: 4083)

Is Readme is complete? Maybe some missing steps?
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.