-
Clone locally
git clone --recurse-submodules -j8 https://github.com/Impact-Africa-Network/ian-content-hub.git
-
Create and activate virtual environment (Use
pipenv
)pipenv --python 3.10 pipenv shell pipenv install
-
Setup Database and Database User
psql > create database ian_cms; > create role ian with password 'ian'; > alter role ian with login; > grant all on database ian_cms to ian;
-
Rename
env.template
to.env
and populate the values appropriately.cp example.env .env
-
Rename
Pipfile.template
toPipfile
and populate the values appropriately.cp Pipfile.template Pipfile
-
Setup submodules
This Project relies on the following submodules:
ian_account
- https://github.com/Impact-Africa-Network/ian-account (branch: feat/ian-cms
)
ian_auth
- https://github.com/Impact-Africa-Network/ian_auth. (branch: feat/ian-cms
) (Optional)
i. Initialize submodules
git submodule init
ii. Fetch and update submodules
git submodule update --remote --recursive
iii. Check out to the respective branches
cd src/ian_auth
git checkout feat/ian-cms
cd src/ian_account
git checkout feat/ian-cms
-
Run migrations
./manage.py makemigrations ./manage.py migrate