Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 980 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 980 Bytes

knowledge-base

Common knowledge for resolving common issues.

Postgres

Create DB with user

sudo -u postgres psql
postgres=# CREATE DATABASE mydb;
postgres=# CREATE USER myuser WITH ENCRYPTED PASSWORD 'mypassword';
postgres=# GRANT ALL PRIVILEGES ON DATABASE mydb TO myuser;

Warning

New for Postgres 15 (additionally need to grant permissions to public schema):

sudo -u postgres psql
postgres=# \c mydb;
mydb=# GRANT USAGE, CREATE ON SCHEMA public TO myuser;

Vue.js

Local development

  1. Create .env.local file with custom local config VUE_APP_API_URL=http://localhost:8080
  2. Create customizable endpoint const apiEndpoint = process.env.VUE_APP_API_URL || '/api'
  3. Enable CORS:

Common issues

ReferenceError: defineProps is not defined

Add 'vue/setup-compiler-macros': true to env section in .eslintrc.js