Install the postgresql client
$ brew install postgresql
Check the postgresql service is down:
$ brew services list
Name Status User Plist
postgresql stopped
Install the node v10.x
$ brew install node
Install the yarn
$ brew install yarn
Go to the project-root-folder and run:
$ make bootstrap
This will setup the virtualenv and install all the python dependencies
then go the project-root-folder/static_src and run:
$ yarn
$ yarn dev
$ make setup-db
this command will pull the postgres docker image and create a docker container, all the db data will store under ~/Desktop folder by default
$ make start-db
$ make run
$ docker-compose up [--build]
$ docker container exec -it cv_web_1 bash
$ docker rmi `docker images -q -f dangling=true`
1. Persistent volume with file type
$ kubectl apply -f kubernetes/db/persistent-volume-file.yaml
2. Deploy the postgresql database
$ kubectl apply -f kubernetes/db/deploy.yaml
1. django application deployement
$ kubectl apply -f kubernetes/app/app-deploy.yaml
2. nginx deployment
$ kubectl apply -f kubernetes/app/nginx-deploy.yaml
3. service setup
$ kubectl apply -f kubernetes/app/service.yaml
$ kubectl get pod --watch
$ kubectl get deployment --watch
$ kubectl get service --watch
$ kubectl logs deployement-instant-id -f
$ make coverage ARGS='src'
$ make coverage-report-html
Then you can find the generated coverage HTML version report under ROOT/htmlcov/
$ docker pull postgres
$ docker run -i -t -p 5432:5432 postgres
$ docker exec -it inst-name /bin/bash
$ psql -h localhost -p 5432 -U postgres
$ make setup-db
$ make stop-db
$ make start-db
$ make destroy-db
$ make createsuperuser
Use nvm to manage the different node version
Install the long term support version node:
$ nvm install node --lts
Display all installed node version
$ nvm list
Use the specfic version
$ nvm use v10.3.0
$ yarn
$ yarn run build
if you need the build automatically with the file changes
$ yarn run watch
A task is defined to run the build with the running server
$ yarn dev
Production build
$ yarn prod-build
"extract-text-webpack-plugin": "^4.0.0-beta.0",