npm install
npm run serve
npm run build
note to myself: type: npm: package manager vue: client framework vue cli: commandline interface my SQL connector: connects python to mySQL
library: axios: client sends requests to server
commands
in client:
npm run serve/build: go online 192...-> online 127...-> local
node example.js -> run javascript file
axios commands: get, post(get with data), delete, put(update data)
in server:
activate vertual environment: connect-env/bin/activate
run.py: contains all commands, so run this one
database:
brew services start mysql
brew services
my sql -uroot
\q
show databases;
create database abc
use connect
show tables
create table ppl(firstname varchar(20), lastname varchar(20))
select * from ppl
insert into ppl
...