Portfolio of SDSLabs made in Django and Vue.
- Install python and pip.
- Install virtualenv.
- Clone the github repository.
- Go the root directory of the project and run
virtualenv -p python3 ./venv. - Activate the virtualenv with
source ./venv/bin/activate. - Run
pip install -r settings/requirements-common.txt. - Run
pip install -r settings/dev/requirements-dev.txtorpip install -r settings/prod/requirements-prod.txtdepending on the environment.
The next 2 steps are for installing postgresql. Alternatively, if you do not want to use docker you can install postgresql on your own.
-
Make sure
dockeranddocker-composeis installed. -
Run
docker-compose -f settings/dev/postgres-docker-compose.yml up -d. -
Once you have an up and running configuration of postgresql copy
settings/dev/settings.sample.pytosettings/dev/settings.pyand update the postgresql credentials. -
Run
python manage.py migrate --settings settings.dev.settings. -
Run
python manage.py createsuperuser --settings=settings.dev.settings. -
Run
python manage.py runserver --settings settings.dev.settings. -
Open
localhost:8000/adminto verify that your django backend is working perfectly. -
Go to the
frontenddirectory. -
Run
npm install. -
Run
npm run serve. -
Open
localhost:8080to see the frontend.