Skip to content

jarnoln/cvdb

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

CVDB

CircleCI Travis CI codecov

CV database for storing and displaying CVs and resumes. There are many like it, but this one is mine.

Sources at GitHub. Running instance at cvdb.fi.

Using

Deploy

Install Ansible

Install fabric 1.x:

pip install 'fabric<2.0' 

Get sources:

git clone https://github.com/jarnoln/cvdb.git

Add your host to ansible/inventory. Then:

ansible-playbook -i ansible/inventory ansible/provision-deb.yaml

fab -f fabfile.py deploy:host=user@host

Set up development environment

Get sources:

git clone https://github.com/jarnoln/cvdb.git

Create virtual environment and install Python packages:

mkvirtualenv -p /usr/bin/python3 cvdb
pip install -r requirements.txt

Generate password:

python cvdb/generate_passwords.py cvdb/passwords.py

Initialize DB:

./manage.py migrate
./manage.py makemigrations viewcv
./manage.py migrate viewcv

Run tests:

./manage.py test

If tests pass, you should be good to go.

Run development server:

./manage.py runserver

Now should be able to see CVDB in your browser at http://127.0.0.1:8000/

Note: When trying to sign up on local server, sending confirmation email fails unless a mail server is installed. Installing for example Postfix should fix this:

sudo apt install postfix