Common knowledge for resolving common issues.
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;
- Create
.env.local
file with custom local configVUE_APP_API_URL=http://localhost:8080
- Create customizable endpoint
const apiEndpoint = process.env.VUE_APP_API_URL || '/api'
- Enable CORS:
ReferenceError: defineProps is not defined
Add 'vue/setup-compiler-macros': true
to env
section in .eslintrc.js