Brucifer karte 2022
Before getting started you should have the following installed and running:
- Npm - instructions
- Vue CLI 3 - instructions
- Python 3 - instructions
git clone https://github.com/pavleerg/brucifer-karte.git
cd brucifer-karte
Setup
npm install
pip install -m ./requirements.txt
python manage.py migrate
python manage.py runserver
Open another terminal in the repo directory:
cd ui
npm run serve
- in the root directory, rename the .env.example to .env and adjust your enivronment variables
- 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
- 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
- go to http://localhost:8080/admin/login/#loaded
- logg in with the email that you previously added to your admin user
git clone https://github.com/pavleerg/brucifer-karte.git
cd brucifer-karte
- in the root directory, rename the .env.example to .env and adjust your enivronment variables
- 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
docker-compose up -d --build
Run only the first time you are deploying the app
python manage.py loaddata init_data.json