Skip to content

KSET/brucifer-karte-2022

Repository files navigation

brucifer-karte

Brucifer karte 2022

Local deploy

Prerequisites

Before getting started you should have the following installed and running:

Setup Template

git clone https://github.com/pavleerg/brucifer-karte.git
cd brucifer-karte

Setup

npm install
pip install -m ./requirements.txt
python manage.py migrate

Running Development Servers

python manage.py runserver

Open another terminal in the repo directory:

cd ui
npm run serve

Adjusting the environment variables in django

  • in the root directory, rename the .env.example to .env and adjust your enivronment variables

Adjusting the environment variables in vue

  • in the ui directory, rename the .env.example to .env and adjust your enivronment variables to the same variables you enetered in the root .env file

Adding an admin user to be able to access the site

  • got to the development server, the rest api service at http://127.0.0.1:8000/
  • click on users
  • at the bottom on the page your admin user
  • set the id to any number
  • set the privilege to "1"
  • be sure to set the same email you are gonna use for the google login

Logging in the app

Docker deploy

Setup Template

git clone https://github.com/pavleerg/brucifer-karte.git
cd brucifer-karte

Adjusting the environment variables in django

  • in the root directory, rename the .env.example to .env and adjust your enivronment variables

Adjusting the environment variables in vue

  • in the ui directory, rename the .env.example to .env and adjust your enivronment variables to the same variables you enetered in the root .env file

Run docker-compose

docker-compose up -d --build

After docker is up

Run only the first time you are deploying the app

python manage.py loaddata init_data.json