Skip to content

lionelk/v6_api

This branch is 295 commits behind c2corg/v6_api:master.

Folders and files

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

Repository files navigation

GitHub license Build status Github Code scanning Codacy Badge Total alerts 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_PATH_NOCONV=1

Useful links in wiki

Full info about development environment

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.3%
  • Scala 1.1%
  • HTML 0.8%
  • Shell 0.2%
  • Makefile 0.2%
  • PLpgSQL 0.2%
  • Other 0.2%