Skip to main content

Expense tracking application built on the CubicWeb framework.

Developping with docker

Assuming you have a postgresql running on your machine where you can connect with peer authentication, run “make dev” it will spawn an interactive shell inside a docker container with the code mounted in develop mode. It mean you can edit the code locally and run it in the container.

Some useful commands:

  • cubicweb-ctl db-create -a fresh will create and initialize the database

  • cubicweb-ctl pyramid -D -l info fresh will start the instance on http://localhost:8080

Deploying on kubernetes

The file deployment.yaml contains several containers split in several deployments:

  • nginx to serve static files directly

  • fresh to run the application (and compile the latest translation)

  • an initContainers upgrade before fresh that upgrade the database schema if there is a new fresh version.

  • fresh-scheduler to have the scheduler running.

To create the initial database from an existing empty database:

kubectl run -it fresh-dbcreate \
   --env CW_DB_HOST=db \
   --env CW_DB_USER=user \
   --env CW_DB_PASSWORD=pass \
   --env CW_DB_NAME=fresh \
   --image=hub.extranet.logilab.fr/logilab/fresh --command -- \
   cubicweb-ctl db-create --automatic --create-db=n fresh
kubectl delete deployment fresh-dbcreate

Then generate a secret named “fresh” from where environment variables are set:

kubectl create secret generic fresh-env \
   --from-literal CW_DB_HOST=db
   --from-literal CW_DB_USER=user \
   --from-literal CW_DB_PASSWORD=pass \
   --from-literal CW_DB_NAME=fresh \
   --from-literal CW_BASE_URL=https://fresh.example.com

You need to mount a cwclientlib configuration file to make CWClientLibDataFeedParser. If you don’t use this feature, just create an empty file.

Create a file named cwclientlibrc and run:

kubectl create secret generic fresh-cwclientlibrc --from-file=./cwclientlibrc

Create a persistent volume for bfss data:

kubectl apply -f deploy/pvc.yaml

Then deploy fresh with:

kubectl apply -f deploy/deployment.yaml

Release files for cubicweb-fresh 1.12.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cubicweb-fresh 1.12.1
File Size Uploaded
cubicweb_fresh-1.12.1.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cubicweb-fresh 1.12.1
File Interpreter ABI Platform
cubicweb_fresh-1.12.1-py3-none-any.whl Python 3 none any Details

Total release size: 29.2 kB

Release files / cubicweb_fresh-1.12.1.tar.gz

Download URL cubicweb_fresh-1.12.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0819c5d20f9f2274c63685a43e545e1051e464f100bc5691cfd6825fc50bc93a
BLAKE2b-256 checksum
How to use checksums
e9a4f8f85f4699c7af1eea866643aac7b87d1572bc8a18bd1ed414859be30a91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / cubicweb_fresh-1.12.1-py3-none-any.whl

Download URL cubicweb_fresh-1.12.1-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16a09becefdb0276e2862893fe82437d489271305a11760608be3953ff3d4a02
BLAKE2b-256 checksum
How to use checksums
b411139f75aaf1a43995f93c3339548faf2101c56e98b92012a776c42fe435e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.12.1 This release

2 release files

1.12.0

2 release files

1.11.1

2 release files

1.11.0

2 release files

1.10.0

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

0.7.1

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.3.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page