A minimalist collective buying software.
Find a file
Alexis M 89e4664c21 Display names in the debts repartition table.
Because multiple referents can exist in the same group,
one is picked and considerd as the one who's paying for the group.

Closes #18.
2019-10-05 00:18:31 +02:00
copanier Display names in the debts repartition table. 2019-10-05 00:18:31 +02:00
remote Use framagit to deploy 2019-04-13 10:08:06 +02:00
tests Start fixing the tests. 2019-10-04 21:31:16 +02:00
.flake8 iwyu 2019-03-22 19:35:32 +01:00
.gitignore Start fixing the tests. 2019-10-04 21:31:16 +02:00
MANIFEST.in Add MANIFEST 2019-03-24 16:20:50 +01:00
pytest.ini Add a concept of groups 2019-07-19 00:12:33 +02:00
README.md Make some changes to the README 2019-04-22 15:20:30 +02:00
requirements-dev.txt Use external python-emails library. 2019-10-04 22:22:24 +02:00
setup.cfg Use external python-emails library. 2019-10-04 22:22:24 +02:00
setup.py non working MongoDB custom ODM 2019-03-17 19:30:10 +01:00

Copanier

Copanier is a minimalist grouped-command management software.

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

Philosophy

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

Install copanier locally

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

And then create a virtualenv so everything is installed separately from the rest of the system:

$ # Get the source code locally
$ git clone https://framagit.org/ybon/copanier.git
$ cd copanier

$ # Create the virtualenv
$ python -m venv venv

$ # Activate it!
$ source venv/bin/activate

$ # install everything!
$ pip install -e .

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