{"id":21753678,"url":"https://github.com/melardev/railsapiecommerce","last_synced_at":"2025-04-13T08:54:30.634Z","repository":{"id":107256275,"uuid":"170560281","full_name":"melardev/RailsApiEcommerce","owner":"melardev","description":"Rails Api Ecommerce application","archived":false,"fork":false,"pushed_at":"2019-03-13T15:12:28.000Z","size":773,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T00:33:55.697Z","etag":null,"topics":["active-record","activerecord","crud","e-commerce","ecommerce","full-stack","fullstack","orm","orm-framework","pagination","ruby","ruby-on-rails","shopping","shopping-cart"],"latest_commit_sha":null,"homepage":"http://melardev.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/melardev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-13T18:46:24.000Z","updated_at":"2024-09-13T09:05:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a56471c-c617-4444-ba1b-bb89416e4c92","html_url":"https://github.com/melardev/RailsApiEcommerce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FRailsApiEcommerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FRailsApiEcommerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FRailsApiEcommerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melardev%2FRailsApiEcommerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melardev","download_url":"https://codeload.github.com/melardev/RailsApiEcommerce/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688543,"owners_count":21145763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-record","activerecord","crud","e-commerce","ecommerce","full-stack","fullstack","orm","orm-framework","pagination","ruby","ruby-on-rails","shopping","shopping-cart"],"created_at":"2024-11-26T09:10:49.371Z","updated_at":"2025-04-13T08:54:30.627Z","avatar_url":"https://github.com/melardev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby On Rails E-commerce API\n# Table of Contents\n- [Introduction](#introduction)\n- [Full-stack Applications](#full-stack-applications)\n  * [E-commerce (shopping cart)](#e-commerce-shopping-cart)\n    + [Server side implementations](#server-side-implementations)\n    + [Client side implementations](#client-side-implementations)\n  * [Blog/CMS](#blogcms)\n    + [Server side implementations](#server-side-implementations-1)\n    + [Client side](#client-side)\n      - [The next come are](#the-next-come-are)\n  * [Simple CRUD(Create, Read, Update, Delete)](#simple-crudcreate-read-update-delete)\n    + [Server side implementations](#server-side-implementations-2)\n    + [Client side implementations](#client-side-implementations-1)\n      - [The next come are](#the-next-come-are-1)\n  * [CRUD + Pagination](#crud--pagination)\n    + [Server side implementations](#server-side-implementations-3)\n      - [The next come are](#the-next-come-are-2)\n    + [Client side implementations](#client-side-implementations-2)\n      - [The next come are](#the-next-come-are-3)\n- [Follow me](#social-media-links)\n    \n# Introduction\nThis is one of my E-commerce API app implementations. It is written in Ruby On Rails.\nThis is not a finished project by any means, but it has a valid enough shape to be git cloned and studied if you are interested in this topic.\nIf you are interested in this project take a look at my other server API implementations I have made with:\n\n# Full-stack Applications\n## E-commerce (shopping cart)\n### Server side implementations\n- [Spring Boot + Spring Data Hibernate](https://github.com/melardev/SBootApiEcomMVCHibernate)\n- [Spring Boot + JAX-RS Jersey + Spring Data Hibernate](https://github.com/melardev/SpringBootEcommerceApiJersey)\n- [Node Js + Sequelize](https://github.com/melardev/ApiEcomSequelizeExpress)\n- [Node Js + Bookshelf](https://github.com/melardev/ApiEcomBookshelfExpress)\n- [Node Js + Mongoose](https://github.com/melardev/ApiEcomMongooseExpress)\n- [Python Django](https://github.com/melardev/DjangoRestShopApy)\n- [Flask](https://github.com/melardev/FlaskApiEcommerce)\n- [Golang go gonic](https://github.com/melardev/api_shop_gonic)\n- [Ruby on Rails](https://github.com/melardev/RailsApiEcommerce)\n- [AspNet Core](https://github.com/melardev/ApiAspCoreEcommerce)\n- [Laravel](https://github.com/melardev/ApiEcommerceLaravel)\n\nThe next to come are:\n- Spring Boot + Spring Data Hibernate + Kotlin\n- Spring Boot + Jax-RS Jersey + Hibernate + Kotlin\n- Spring Boot + mybatis\n- Spring Boot + mybatis + Kotlin\n- Asp.Net Web Api v2\n- Elixir\n- Golang + Beego\n- Golang + Iris\n- Golang + Echo\n- Golang + Mux\n- Golang + Revel\n- Golang + Kit\n- Flask + Flask-Restful\n- AspNetCore + NHibernate\n- AspNetCore + Dapper\n\n### Client side implementations\nThis client side E-commerce application is also implemented using other client side technologies:\n- [React Redux](https://github.com/melardev/ReactReduxEcommerceRestApi)\n- [React](https://github.com/melardev/ReactEcommerceRestApi)\n- [Vue](https://github.com/melardev/VueEcommerceRestApi)\n- [Vue + Vuex](https://github.com/melardev/VueVuexEcommerceRestApi)\n- [Angular](https://github.com/melardev/AngularEcommerceRestApi)\n\n## Blog/CMS\n### Server side implementations\n- [Spring Boot + Spring Data Hibernate](https://github.com/melardev/SpringBootApiBlog)\n- [Go + Gin Gonic](https://github.com/melardev/GoGonicBlogApi)\n- [NodeJs + Mongoose](https://github.com/melardev/ApiBlogExpressMongoose)\n- [Laravel](https://github.com/melardev/LaravelApiBlog)\n- [Ruby on Rails + JBuilder](https://github.com/melardev/RailsApiBlog)\n- [Django + Rest-Framework](https://github.com/melardev/DjangoApiBlog)\n- [Asp.Net Core](https://github.com/melardev/AspCoreApiBlog)\n- [Flask + Flask-SQLAlchemy](https://github.com/melardev/FlaskApiBlog)\n\nThe next to come are:\n- Spring Boot + Spring Data Hibernate + Kotlin\n- Spring Boot + Jax-RS Jersey + Hibernate + Kotlin\n- Spring Boot + mybatis\n- Spring Boot + mybatis + Kotlin\n- Asp.Net Web Api v2\n- Elixir\n- Golang + Beego\n- Golang + Iris\n- Golang + Echo\n- Golang + Mux\n- Golang + Revel\n- Golang + Kit\n- Flask + Flask-Restful\n- AspNetCore + NHibernate\n- AspNetCore + Dapper\n\n### Client side\n- [Vue + Vuex](https://github.com/melardev/VueVuexBlog)\n- [Vue](https://github.com/melardev/VueBlog)\n- [React + Redux](https://github.com/melardev/ReactReduxBlog)\n- [React](https://github.com/melardev/ReactBlog)\n- [Angular](https://github.com/melardev/AngularBlog)\n\nThe next come are\n- Angular NgRx-Store\n- Angular + Material\n- React + Material\n- React + Redux + Material\n- Vue + Material\n- Vue + Vuex + Material\n- Ember\n\n## Simple CRUD(Create, Read, Update, Delete)\n### Server side implementations\n- [Spring Boot + Spring Data Hibernate](https://github.com/melardev/SpringBootApiJpaCrud)\n- [Spring boot + Spring Data Reactive Mongo](https://github.com/melardev/SpringBootApiReactiveMongoCrud)\n- [Spring Boot + Spring Data Hibernate + Jersey](https://github.com/melardev/SpringBootApiJerseySpringDataCrud)\n- [NodeJs Express + Mongoose](https://github.com/melardev/ExpressMongooseApiCrud)\n- [Nodejs Express + Bookshelf](https://github.com/melardev/ExpressBookshelfApiCrud)\n- [Nodejs Express + Sequelize](https://github.com/melardev/ExpressSequelizeApiCrud)\n- [Go + Gin-Gonic + Gorm](https://github.com/melardev/GoGinGonicApiGormCrud)\n- [Ruby On Rails](https://github.com/melardev/RailsApiCrud)\n- [Ruby On Rails + JBuilder](https://github.com/melardev/RailsApiJBuilderCrud)\n- [Laravel](https://github.com/melardev/LaravelApiCrud)\n- [AspNet Core](https://github.com/melardev/AspNetCoreApiCrud)\n- [AspNet Web Api 2](https://github.com/melardev/AspNetWebApiCrud)\n- [Python + Flask](https://github.com/melardev/FlaskApiCrud)\n- [Python + Django](https://github.com/melardev/DjanogApiCrud)\n- [Python + Django + Rest Framework](https://github.com/melardev/DjangoRestFrameworkCrud)\n\n### Client side implementations\n- [VueJs](https://github.com/melardev/VueAsyncCrud)\n\n#### The next come are\n- Angular NgRx-Store\n- Angular + Material\n- React + Material\n- React + Redux + Material\n- Vue + Material\n- Vue + Vuex + Material\n- Ember\n- Vanilla javascript\n\n## CRUD + Pagination\n### Server side implementations\n- [Spring Boot + Spring Data + Jersey](https://github.com/melardev/SpringBootJerseyApiPaginatedCrud)\n- [Spring Boot + Spring Data](https://github.com/melardev/SpringBootApiJpaPaginatedCrud)\n- [Spring Boot Reactive + Spring Data Reactive](https://github.com/melardev/ApiCrudReactiveMongo)\n- [Go with Gin Gonic](https://github.com/melardev/GoGinGonicApiPaginatedCrud)\n- [Laravel](https://github.com/melardev/LaravelApiPaginatedCrud)\n- [Rails + JBuilder](https://github.com/melardev/RailsJBuilderApiPaginatedCrud)\n- [Rails](https://github.com/melardev/RailsApiPaginatedCrud)\n- [NodeJs Express + Sequelize](https://github.com/melardev/ExpressSequelizeApiPaginatedCrud)\n- [NodeJs Express + Bookshelf](https://github.com/melardev/ExpressBookshelfApiPaginatedCrud)\n- [NodeJs Express + Mongoose](https://github.com/melardev/ExpressApiMongoosePaginatedCrud)\n- [Python Django](https://github.com/melardev/DjangoApiCrudPaginated)\n- [Python Django + Rest Framework](https://github.com/melardev/DjangoRestFrameworkPaginatedCrud)\n- [Python Flask](https://github.com/melardev/FlaskApiPaginatedCrud)\n- [AspNet Core](https://github.com/melardev/AspNetCoreApiPaginatedCrud)\n- [AspNet Web Api 2](https://github.com/melardev/WebApiPaginatedAsyncCrud)\n\n#### The next come are\n- NodeJs Express + Knex\n- Flask + Flask-Restful\n- Laravel + Fractal\n- Laravel + ApiResources\n- Go with Mux\n- AspNet Web Api 2\n- Jersey\n- Elixir\n\n### Client side implementations\n- [Angular](https://github.com/melardev/AngularPaginatedAsyncCrud)\n- [React-Redux](https://github.com/melardev/ReactReduxPaginatedAsyncCrud)\n- [React](https://github.com/melardev/ReactAsyncPaginatedCrud)\n- [Vue + Vuex](https://github.com/melardev/VueVuexPaginatedAsyncCrud)\n- [Vue](https://github.com/melardev/VuePaginatedAsyncCrud)\n\n\n#### The next come are\n- Angular NgRx-Store\n- Angular + Material\n- React + Material\n- React + Redux + Material\n- Vue + Material\n- Vue + Vuex + Material\n- Ember\n- Vanilla javascript\n\n# Social media links\n- [Youtube Channel](https://youtube.com/melardev) I publish videos mainly on programming\n- [Blog](http://melardev.com) Sometimes I publish the source code there before Github\n- [Twitter](https://twitter.com/@melardev) I share tips on programming\n\n## WARNING\nI have mass of projects to deal with so I make some copy/paste around, if something I say is missing or is wrong, then I apologize\nand you may let me know opening an issue.\n\n# Getting started\n1. Git clone the project\n2. cd into the project\n3. bundle install to make sure you install al the dependencies\n4. then run `rails db:create db:seed` to create and seed the database\n5. run the app with `rails server -p 8080`\n6. Import api.postman_collection.json into postman and issue the requests by yourself -)\n\n# Features\n- Authentication / Authorization\n- Paging\n- Admin feature\n- CRUD operations on products, comments, tags, categories, addresses\n![Fetching products page](./github_images/postman.png)\n- Orders, guest users may place an order\n![Database diagram](./github_images/db_structure.png)\n\n\n# What to learn\n- Rail API application\n- Active Record, the rails ORM framework\n    - associations: belongs_to, has_many, belongs_to_many\n    - validations\n- JSON builder for rails\n\n\n# TODO\n- Refactor the horrible orders_controller:create method\n- Review all the Database queries, are they vulnerable to SQLi ?\n- Narrow down the routes available, I rely on resources: but I have some of the resource methods not used\n- Dockerize this application\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelardev%2Frailsapiecommerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelardev%2Frailsapiecommerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelardev%2Frailsapiecommerce/lists"}