Code Monkey home page Code Monkey logo

foodie's Introduction

Build Status Maintainability Test Coverage pankajbatra Inline docs Coverage Status

Deployment Automation: Capistrano
Auth impl: Devise, Rollify, JWT
Backend Admin: rails_admin
Functional testing: RSpec, Fabricator for fake data gen
* Ruby version: 2.7.0
* Rails Version:6.0.2.2
* Using circleci, codeclimate, travis-ci, 

An application for Food Delivery

  • User must be able to create an account and log in.

  • Implement 2 roles with different permission levels Regular User: Can see all restaurants and place orders from them Restaurant Owner: Can CRUD restaurants and meals

  • A Restaurant should have a name and description of the type of food they serve

  • A meal should have a name, description, and price

  • Orders consist of a list of meals, date, total amount and status

  • An Order should be placed for a single Restaurant only, but it can have multiple meals

  • Restaurant Owners and Regular Users can change the Order Status respecting bellow flow and permissions:

    • Placed: Once a Regular user places an Order
    • Canceled: If the Regular User cancel the Order
    • Processing: Once the Restaurant Owner starts to make the meals
    • In Route: Once the meal is finished and Restaurant Owner marks it’s on the way
    • Delivered: Once the Restaurant Owner receive information the meal was delivered by his staff
    • Received: Once the Regular User received the meal and marked as Received
  • Status should follow the sequence as stated above, and not allowed to move back

  • Status could not be changed by a different user as it stated above

  • Orders should have a history about the date and time of the status changing

  • Both Regular Users and Restaurant Owners should be able to see a list of the orders

  • Restaurant Owners have the ability to block a User

  • REST API. Make it possible to perform all user actions via the API, including authentication

  • How to run the test suite: rspec --format doc

  • Deployment instructions: bundle exec cap production deploy

  • Credentials update: EDITOR=vi rails credentials:edit

  • Search for fake data: faker search food

  • append RUBYOPT='-W:no-deprecated -W:no-experimental' before rails commandline to avoid warnings

-- To Do ----

  • Fix code smells and suggestion by - rubycritic, flay, flog, reek, simplecov, rubocop, rails_best_practices, brakeman, roodi, dawnscanner
  • deployment on heroku
  • state machine impl using https://github.com/aasm/aasm
  • auto refresh orders and status using rails cable
  • photos of meals using rails storage
  • logos of restaurant using rails storage
  • moving permission checks to cancancan
  • Use name instead of index in status values
  • Move same validation to helper class instead of rewriting to multiple places
  • change password functionality
  • Email validation to activate account
  • Order email
  • rack-attack
  • Sentry integration
  • swagger
  • implement caching using rails cache & redis
  • Use active jobs
  • Use i18 APIs
  • Use rails mailbox
  • Docker, Kubernetes, ELK, Jenkins, slack
  • capybara for e2e testing

Frontend:

  • Group meals by cuisine in user display
  • Show Vegan, Chef Special (show Thumbs up icon), halal, contains egg (show egg icon) on meal. change veg and non-veg text to color icons. Show description and ingredients. spice level as icon (chilli)
  • Show rating on restaurant card and inside
  • restaurants sort by delivery time, rating, filter by cuisines (multi-select)

foodie's People

Contributors

pankajbatra avatar dependabot-preview[bot] avatar

Stargazers

valno avatar

Watchers

 avatar

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.