Questions about quick start
dgleba opened this issue · 4 comments
Thanks for this project. I like it. Thanks for your work.
I did this.
# Settings.
dir=/srv/test
proj=vuecrudx
mkdir -p $dir
cd $dir
git clone https://github.com/ais-one/vue-crud-x.git $proj
cd $proj
cd example-spa
# ------- edit .env ---------
cp .env-sample .env
# ------- edit .env ---------
# ------- edit .env ---------
cp ../backend/.env-sample ../backend/.env
# ------- edit .env ---------
npm i
npm run build-rest
npm run init-db
npm run start
It seems to work for many things. I can login and create a book, etc.
I get errors in the console. See pics.
Are the errors normal?
Did I do something wrong?
Why does it show the "find error. network error. failed to fetch" after about 5 minutes?
After seeing the note in the .env-sample
file, I changed it to the following..
cp .env-sample .env.development
cp ../backend/.env-sample ../backend/.env.development
I edited the env files as follows
Front..
VUE_APP_API_URL=http://192.168.88.39:3000
# VUE_APP_WS_URL=ws://192.168.88.39:3001
VUE_APP_WS_URL=
Back..
API_PORT=3000
# WS_PORT=3001
WS_PORT=
I still get the same errors.
Hi,
If you are on local machine
Frontend:
VUE_APP_API_URL=http://127.0.0.1:3000
VUE_APP_WS_URL=ws://127.0.0.1:3001
Backend:
API_PORT=3000
WS_PORT=3001
If not replace the 127.0.0.1 with your IP. check that the ports are not blocked...
Hi,
I found a bug in the backend regarding websockets. am fixing it and it will be in the next release