All Projects → spiral-project → copanier

spiral-project / copanier

Licence: GPL-3.0 license
A minimalist collective buying software.

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to copanier

Gochat
🔥 微信 Go SDK 🚀🚀🚀
Stars: ✭ 141 (+642.11%)
Mutual labels:  pay
web-monetized-video
experimenting with web monetisation API
Stars: ✭ 15 (-21.05%)
Mutual labels:  pay
instacart-delivery-availability-check
Tiny python script that check's instacart's delivery availability and notifies you if a slot opens up.
Stars: ✭ 18 (-5.26%)
Mutual labels:  delivery
Priest
dubbo mybatis springboot base soa rest api framework with customer code generator
Stars: ✭ 160 (+742.11%)
Mutual labels:  pay
Pay Gateway
pay gateway. support alipay,wechatpay,unionpay,jdpay etc.
Stars: ✭ 247 (+1200%)
Mutual labels:  pay
credit-card-prompt
Credit card prompt with validation and address lookup
Stars: ✭ 13 (-31.58%)
Mutual labels:  pay
Dwwxpay
微信支付/订单查询
Stars: ✭ 122 (+542.11%)
Mutual labels:  pay
food delivery app
A Food App using Flutter & Firebase.
Stars: ✭ 75 (+294.74%)
Mutual labels:  delivery
WHMCS-JSJ-API-Pay-Gateway
WHMCS 财务系统对接金莎云免签支付API(你们怎么用,与我无瓜好吧:)
Stars: ✭ 58 (+205.26%)
Mutual labels:  pay
delibee
📦 Delivery tracking library on Node.js
Stars: ✭ 24 (+26.32%)
Mutual labels:  delivery
Pay
支付 SDK 的集合与重构,支持支付宝、微信支付、银联支付。
Stars: ✭ 198 (+942.11%)
Mutual labels:  pay
Oneqrcode
📱 微信、支付宝、QQ 三合一收款二维码(单文件版)
Stars: ✭ 233 (+1126.32%)
Mutual labels:  pay
efp
A framing protocol bridging the gap between elementary stream data and transport protocols.
Stars: ✭ 24 (+26.32%)
Mutual labels:  delivery
Pay Java Parent
第三方支付对接全能支付Java开发工具包.优雅的轻量级支付模块集成支付对接支付整合(微信,支付宝,银联,友店,富友,跨境支付paypal,payoneer(P卡派安盈)易极付)app,扫码,网页刷脸付刷卡付条码付转账服务商模式,微信分账,微信合单支付、支持多种支付类型多支付账户,支付与业务完全剥离,简单几行代码即可实现支付,简单快速完成支付模块的开发,可轻松嵌入到任何系统里 目前仅是一个开发工具包(即SDK),只提供简单Web实现,建议使用maven或gradle引用本项目即可使用本SDK提供的各种支付相关的功能
Stars: ✭ 2,025 (+10557.89%)
Mutual labels:  pay
alipay kit
flutter版支付宝登录/支付
Stars: ✭ 240 (+1163.16%)
Mutual labels:  pay
Alipay kit
flutter版支付宝登录/支付
Stars: ✭ 140 (+636.84%)
Mutual labels:  pay
delivery-truck
DEPRECATED: Delivery build cb for pipelines
Stars: ✭ 36 (+89.47%)
Mutual labels:  delivery
mollie-api-go
Golang wrapper for Mollie's REST API with full resource coverage.
Stars: ✭ 45 (+136.84%)
Mutual labels:  pay
BDB-Frame-API
Frame API -开箱即用(封装函数、服务类、api ...)等等一系列功能案例,可以ctrl+c/v & 拿去使用 (免费)。如有问题,社区联系交流即可。
Stars: ✭ 163 (+757.89%)
Mutual labels:  pay
on-demand-delivery-fastlane-slack
iOS On-Demand delivery architecture via slack/jenkins/fastlane. Demo project for: #PragmaConf2019
Stars: ✭ 18 (-5.26%)
Mutual labels:  delivery

Copanier

Copanier is a software to make grouped orders. It's generally used by small groups who want to buy food supplies directly from producers, without requiring each individual to see each producer.

It helps people to order a set of defined products, and provide a few helpers to ease the life of everyone involved :-)

How does it work?

  1. A new delivery is created ;
  2. Producers and products are created in the software (or copied from a past delivery) ;
  3. (Optional : prices are checked with the producers to be sure they are still okay) ;
  4. Individuals place their orders for their groups ;
  5. Referents ask their producers for the products and pay them ;
  6. There is a delivery - the tool provides summary of who ordered what ;
  7. A dispatch of who has to pay whom is done ;
  8. XXX
  9. ... Profit !

Features

  • Handles groups of people (useful for people sharing a house) ;
  • Handles multiple producers in one delivery ;
  • Intelligent dispatching of payments, without any central bank account ;
  • Support for shipping fees ;

Screenshots

Login screen Login screen Login screen Login screen Login screen

Philosophy

  • Keep things simple.
  • Do not rely on JavaScript (or the less possible)
  • Lower the cost of maintainance of the project

FAQ

How files are stored? Does this rely on a database?

The current implementation of copanier doesn't need an external database, and relies on YAML files instead. It's done to keep things simple and easy to work with / backup, and we believe the needs for a database are very little, since we would very rarely have multiple writes at the same time.

How is it different from cagette?

Cagette is a free software which aims at solving a larger problem that what we're solving. Cagette has a more general approach, providing a tool that can be used by groups of producers, AMAPs, people having a physical store, and group of consumers.

In copanier, we only focus on groups of consumers. We want to keep things as straightforward and effective as possible, by keeping the problem small. We do one thing and we try to do it the best way we can! We believe copanier is better suited for people who want to organise the way we do, but if copanier doesn't fit your needs, cagette might :-)

Install copanier locally

Get the system dependencies

You might need to install some system dependencies. On Debian-based systems, you can install the dependencies with this command:

sudo apt install python3-dev python3-venv python3-pip libcairo-dev libpango1.0-dev

The project relies on Python 3.7+, so if you don't have it yet, here's your chance!

One way to install it is to use pyenv:

pyenv install 3.7.1
pyenv global 3.7.1

Install copanier

We recommend to use virtualenv so everything is installed separately from the rest of the system:

# Get the source code locally
git clone https://github.com/spiral-project/copanier.git
cd copanier

# Create the virtualenv
python -m venv venv
# On some systems, you might need to specify "python3.7 -m venv venv"

# Activate it!
source venv/bin/activate

# install everything!
pip install -e .

Running in docker

For this, you need to have docker and docker-compose installed.

To give a try to Copanier quickly, you can use docker:

cd docker
sudo docker-compose -p copanier up

The app will be available at http://localhost:2244.

Database is saved under db folder. This folder is mounted in app container to persist data changes on host disk.

For development purpose, you can use both docker-compose.yml and docker-compose-dev.yml which allows you to work on copanier source code and make gunicorn automatically reload workers when code changes:

sudo docker-compose -p copanier -f docker-compose.yml -f docker-compose-dev.yml up

Run local server

Once everything is installed, you can use the copanier command to run the server.

Make sure venv is active, then:

copanier serve

Optionally autoreload the server when you change a python file (needs hupper):

copanier serve --reload

Then browse to http://localhost:2244

Run the tests

If you want to contribute, don't hesitate! In this case, it might be helpful to install a few other dependencies.

pip instal -e .[test]

Then, to run the tests:

# install the required dependencies for dev
pip install -r requirements-dev.txt
# run the tests
py.test tests

Configuration

Copanier uses environment variables to configure its behaviour. All the configuration flags are specified in this config.py file and in order to use them, you will need to set them, considering their name starts with COPANIER_.

One simple way to handle this behaviour, is to have a config.env file and source it (with source config.env) before starting the server. Here is how this file could look like:

export COPANIER_SITE_URL="https://yourdomain.com"
export COPANIER_SITE_NAME="Your site name"
export COPANIER_SITE_DESCRIPTION="Site long description"
export COPANIER_XLSX_FILENAME="crac-produits"
export COPANIER_SEND_EMAILS=True
export COPANIER_SMTP_HOST="mail.gandi.net"
export COPANIER_SMTP_PASSWORD="something"
export COPANIER_SMTP_LOGIN="yourlogin"
export COPANIER_FROM_EMAIL="[email protected]"
export COPANIER_EMAIL_SIGNATURE="The team"
export COPANIER_STAFF="[email protected] [email protected]"

Deployment

If you're running the application locally, then just running it with copanier serve might be enough, but if you want to deploy it in production, the best way to make this run is to rely on a WSGI server. One good option is gunicorn.

You can run it with this command:

gunicorn -k roll.worker.Worker copanier:app --bind [$IP]:$PORT

Installation on AlwaysData

AlwaysData has a free plan capable of hosting copanier. Here are the steps to install there :

  1. Create a free account
  2. Connect via ssh
  3. git clone https://github.com/spiral-project/copanier.git
  4. Create the venv with python3.9 -m venv venv (using python 3.9 right now to avoid issues with cython)
  5. Create a copanier.env and runserver.sh file with the contents below
export COPANIER_SITE_NAME="Copanier"
export COPANIER_SITE_URL="https://xxx.alwaysdata.net"
export COPANIER_SITE_DESCRIPTION="Copanier"
export COPANIER_XLSX_FILENAME="produits"
export COPANIER_SEND_EMAILS=True

export COPANIER_SMTP_HOST="xxx"
export COPANIER_SMTP_PASSWORD="xxx"
export COPANIER_SMTP_LOGIN="xxx"

export COPANIER_FROM_EMAIL="xxx"
export COPANIER_EMAIL_SIGNATURE="Copanier"
export COPANIER_STAFF=""
#!/bin/bash
source copanier.env && /home/copanier/venv/bin/gunicorn -k roll.worker.Worker copanier:app --bind [$IP]:$PORT

Then in the admin pannel create a website with a custom script that runs /runserver.sh and another site which points to the static files. You should be good to go.

Fork

This project is a continuation of the work done by Yohan, on top of which we added the notion of groups, multiple producers, payment repartition etc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].