Skip to content

c2corg/v6_api

Folders and files

NameName
Last commit message
Last commit date
Mar 11, 2025
Mar 23, 2025
Dec 15, 2015
Mar 23, 2025
Apr 12, 2021
Nov 4, 2018
Nov 8, 2016
Apr 12, 2021
Jan 28, 2025
Apr 12, 2021
Jan 5, 2023
Apr 22, 2021
Aug 2, 2021
Oct 17, 2022
Mar 1, 2016
Sep 25, 2015
Oct 17, 2022
Mar 23, 2025
Nov 30, 2016
Jan 23, 2018
Feb 17, 2025
Oct 17, 2022
Dec 13, 2016
Oct 31, 2022
Jun 29, 2016
Dec 13, 2016
Jul 23, 2021
Mar 23, 2025
Feb 10, 2025
Aug 2, 2021
Nov 16, 2020

Repository files navigation

GitHub license Build status Github Code scanning Codacy Badge Known Vulnerabilities

Development environment

On any OS, install git and docker. Then :

Install

# Download camptocamp.org source code :
git clone https://github.com/c2corg/v6_api
cd v6_api

Run

# the very first call may be quite long, (15 minutes, depending of your bandwith)
# time to make a coffee
docker-compose up

❤️ http://localhost:6543 ❤️

Press CTRL+C to terminate it.

Run the background jobs and syncer scripts

In distinct terminals:

docker-compose exec api make -f config/docker-dev run-background-jobs
docker-compose exec api make -f config/docker-dev run-syncer

Check code quality

In another terminal (docker-compose up must be running) :

./scripts/lint.sh

Run test suite

In another terminal (docker-compose up must be running) :

# full tests, take a while
./scripts/test.sh

# If you need to test a specific point: 
./scripts/test.sh c2corg_api/tests/models/test_book.py

# or:
./scripts/test.sh c2corg_api/tests/models/test_book.py::TestBook

# or even:
./scripts/test.sh c2corg_api/tests/models/test_book.py::TestBook::test_to_archive

Note: if you're using MinGW on Windows, be sure to prefix the command with MSYS_NO_PATHCONV=1

Useful links in wiki

Full info about development environment