Skip to content

PEMIDI/cv-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b34bdb0 · Apr 6, 2024

History

74 Commits
Mar 29, 2024
Apr 6, 2024
Jun 12, 2023
Jun 12, 2023
Jun 10, 2023
Jun 9, 2023
Apr 6, 2024
Apr 6, 2024
Apr 6, 2024
Jun 12, 2023
Jun 9, 2023
Jun 12, 2023

Repository files navigation

CV-Builder

Image

Setup Guide, step by step:

Create a Python Virtual Environment

python3.10 -m venv venv

Install the Packages

pip install -r requirements.txt

Create your database

Open your postgresql shell with psql command

Create Database

CREATE DATABASE <database_name>;

Create User

CREATE USER <username> WITH PASSWORD <password>;

Grant all privileges to cv-builder database user

GRANT ALL PRIVILEGES ON DATABASE <database_name> TO <username>;

Create a .env file in root directory and add your created config:

SECRET_KEY='Your Secret Key generated by https://djecrety.ir'
DEBUG='Status of debug of the proejct'
ALLOWED_HOSTS=''

DB_NAME='<database_name>'
DB_USER='<username>'
DB_PASSWORD='<password>'
DB_HOST='localhost'
DB_PORT=5432

Migrate tables to the database

python manage.py migrate

Run with Docker

  • First, you should install Docker

  • Then clone the project:

https://github.com/PEMIDI/cv-builder.git

After you created your .env file:

docker compose up

Migrate your database:

  • First:
docker exec -it cv_web bash
  • Then:
python3 manage.py migrate