Git Product home page Git Product logo

rails-multitenant-products-store's Introduction

Rails Multi-Tenancy Products Store (WIP)

RESTful API to list and categorize products by store. It was design to be consumed by a simple website and a Admin page. One interesting architecture aspect of this project is that the system is designed to serve multiple stores and their users using the same instance, like a marketplace. The main purpose of this project is to practice Ruby on Rails concepts and share with recruiters.

ERD

Simplified entity relation diagram of the project database. https://whimsical.com/erd-7wCVtxvayhgy3PxbeUnuYP

Endpoints

Endpoints that the API provides. https://whimsical.com/endpoints-Vh6H1SxjfoLADLZRidvfVi

UML

Unified model language to describe the functionalities of the system. https://whimsical.com/uml-AJURGu9JU396heFEstEYn

Sugested Wireframe

Sugested wireframe of a webpage on which this API should be consumed. https://whimsical.com/wireframe-A1CNjnGvYR5VHY17GLiQFc

Running the project

The easiest way to run this project locally is using docker-compose.

Build App & Run App

docker-compose build
docker-compose run

Configure Database

Command to create db, run migrations and create seed files.

docker-compose run api rails db:create db:migrate db:seed

Run Tests

To run the tests locally run the following command.

docker-compose run api rspec

Run linter

docker-compose run api rubocop

Next Steps

  • Properly configure environment variables.

  • Allow users to have multiple stores by creating a bridge table (UserStore).

  • Implement image upload using Active Storage and S3.

  • Implement seed data.

  • Add Redis for cache.

  • Create Open API documentation.

rails-multitenant-products-store's People

Contributors

arturluisoliveira 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.