Life is short, we'd like to enjoy every moment of every day.
Here we're trying to offer a way to live a more productive life, just don't waste your time to wait in line.
Order Brother is a pre-order platform that helps people easily search foods, make orders, or open stores.
Order brother, help you out like your older brother.
- Pop-up button
- Build your own store
- Create dishes
- Manage orders if you are owner
- Make order if you are hunger
- Ruby version 2.6.0
- Rails version 5.2.3
- PostgreSQL 11.3
$ bundle install
If you didn't have database.
$ rails db:create
And run migration to create tables.
$ rails db:migrate
Start Rails server.
$ rails s
Check rails routes for more detail:
$ rails routes
Pages | Prefix | URI Pattern |
---|---|---|
Backstage Page: | rails_admin | /backstage |
User sign up: | new_user_registration | /users/sign_up(.:format) |
User sing in: | new_user_session | /users/sign_in(.:format) |
Open pop-up menu by the icon on top right side, the sign-up button is right inside.
- Using phone number as sign up account, but user can sign in with either phone number(10 digits) or email.
backend store route:/admin/stores
After login, user can build store at /admin/stores
page, with store name, main image, etc..
Users can ONLY update or delete their own store(s).
Once your store be created, you can add merchendise easily in your store page.
The list button below store information section let you manage orders which belongs to the current store, you can change state of orders in list page.
You can easily find stores, click into one of the store pages, choose your time preference to pick up and select dishes you want, the shopping cart section on the right side will shows current amount price immediatily.
Check orders you made anytime from Pop-up menu
Orders' state can only change by the flow that defined in Transaction model, you could redefine the state you want in app/models/transaction.rb
, here's the sample of transaction flow: