• Stars
    star
    129
  • Rank 279,217 (Top 6 %)
  • Language
    Elixir
  • Created about 9 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An attempt to port/rebuild Spree, an open source e-commerce solution, with Elixir and Phoenix.

Nova

Build Status Coverage Status Stories in Ready

An attempt to port/rebuild Spree, an open source e-commerce solution, with Phoenix.

Vision

Spree is an excellent product however, for several reasons, it started to show some limits:

  • being written in Ruby and Rails requires a lot of hosting resources
  • it became a big, monolithic piece of software, really hard to customize
  • it slowed down the development pace (perhaps because of the point above)

So here's the deal: why not to port/rebuild Spree with Elixir and Phoenix? The main idea is to take inspiration from the many Spree's good parts and build a new generation ecommerce for the next years.

Roadmap, a sort of

See TODO for more details, meanwhile, here there are some intentions:

Short term

The first short term goal is to quickly build a bare-bones MVP with the core models (eg: Product, Variant, Order, LineItem, ...) and the necessary code to glue them through isolated, well defined commands. Then, at a very high level:

  • get a monolithic app, for now
  • as a Customer (say a guest user for the first iteration), I want to purchase products (add to cart -> do checkout)
  • as an Admin, I want to manage products and orders through an HTTP-JSON API

Mid term

Once we get an initial, working, very basic product, we can start to split the whole app into components. Very similar to Spree:

  • core: contains the core models and their basic integrations (queries, commands, ...);
  • api: all actions should be done from an HTTP-JSON API, so anyone can build its custom frontend (eg: a Single Page App, command line, mobile app, ...), especially for admins;
  • frontend: uses plain old server-rendered HTML pages;
  • admin: not a top priority. it's like frontend, for admins;
  • extensions: everything that doesn't strictly fit into the above components, should be done in a dedicated package. After all, some features are very specific to certain needs, we don't want another monolithic piece of software.

Long term

Don't know right now, world dominationโ„ข? :-)

Contributing

  1. Be nice with others
  2. Check issues or, if your prefer kanban boards, we have waffle too
  3. Fork this repo
  4. Write code (and tests)
  5. Open a PR

Setup

  1. Copy .env-example.exs to .env.exs, then edit it to set secret configs
  2. Install dependencies with mix deps.get
  3. Create and migrate your database with mix ecto.create && mix ecto.migrate
  4. Run tests with mix test
  5. Install npm dependencies with npm install
  6. Start Phoenix endpoint with mix phoenix.server
  7. Visit localhost:4000 from your browser

Credits

More Repositories

1

panoramic

store rails views on database instead of filesystem
Ruby
171
star
2

simple_form_fancy_uploads

simple_form custom inputs to get image/link previews with file uploads.
Ruby
164
star
3

disco

Simple, opinionated yet flexible library to build CQRS/ES driven systems ๐Ÿ•บ
Elixir
34
star
4

picciotto

minimalistic website framework based on Padrino
JavaScript
27
star
5

plug_ets_cache

A simple caching system based on Plug and ETS.
Elixir
26
star
6

12dos-bookmarks

A basic bookmark app
Ruby
17
star
7

flux-tweets

Realtime twitter stream built with NodeJS, React and Flux
JavaScript
17
star
8

mini_cqrs_es

Simple, minimal, opinionated building blocks to implement CQRS/ES in Rust
Rust
10
star
9

rubyday

rubyday.it website
Ruby
9
star
10

operation-go

JavaScript
8
star
11

dotfiles

~/.dotfiles
Lua
7
star
12

nodino

A simple URL shortener built with ExpressJS, React JS and Redis
JavaScript
6
star
13

avarus

a minimalistic URL shortener built with code parsimony in mind
Ruby
4
star
14

likes_tracker

track likes between rails models using Redis backend
Ruby
4
star
15

r12-guessthefriend

"Guess The Friend" game with your Facebook friends
Ruby
4
star
16

parabellum

An attempt to build a #Travian 3.x clone written in #Rust.
Rust
4
star
17

vim_starter_kit

a vim configuration with useful bundles
Vim Script
3
star
18

goshort

a simple URL shortener built with Go
CSS
3
star
19

ttfm_bot

A bot to bring some fun and utils on turntable.fm rooms
Go
3
star
20

flat

a semi static cms engine that runs as elixir phoenix web application
Elixir
3
star
21

gallerizer-jquery-plugin

A jQuery plugin that generates a simple crossfade slideshow
JavaScript
2
star
22

rbcue2txt

Parses cue files from Rekordbox's recordings to produce readable, markdown-friendly playlists.
Rust
2
star
23

robo_radio_rs

A Rust implementation of https://radio.pavonz.com
Rust
2
star
24

cash_cli

Basic CLI app to track personal financing written in #Rust
Rust
1
star
25

txtatus-cli

A very basic http://txtatus.com client to push statuses from command line
Go
1
star
26

stupeflix-client

A Ruby client for http://stupeflix.com API
Ruby
1
star
27

easy_config

Store Ruby or Rails app settings in the easiest way
Ruby
1
star
28

simple_counter

Simple counter experiment made with Rust, Axum, SeaORM, Askama templates and HTMx
Rust
1
star
29

scrobblify

Self-hosted music scrobble database to create personal listening statistics and charts from your Spotify (premium) account.
Rust
1
star