Stop all running containers:
docker container stop $(docker container ls -aq)
Show running containers:
docker container ls -a
Stop all running containers:
docker container stop $(docker container ls -aq)
Show running containers:
docker container ls -a
Please note the following commands:
\list
or \l
: list all databases
\dt
: list all tables in the current database using your search_path
\dt *.
: list all tables in the current database regardless your search_path
You will never see tables in other databases, these tables aren't visible. You have to connect to the correct database to see its tables (and other objects).
Prerequisite : Docker should be installed (Google "How to install docker") duh!
docker pull postgres:latest
(Pick your tag if you know)
mkdir -p $HOME/docker/volumes/postgres
(Ubuntu/Debian/Linux based systems)
docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres
You can connect using psql -h localhost -U postgres -d postgres
- Password is docker
(set in above command)
Create migration for table sources
: bin/cake bake migration CreateSources name:string status:boolean
Create seeder for a table called sources
: php vendor/bin/phinx seed:create --path=config/Seeds SourceSeeder
Run migration and seeder : bin/cake migrations migrate
and bin/cake migrations seed
docker-compose run kode composer require sentry/sdk:2.1.0
docker-compose run kode bin/cake bake all
CakePHP + Vue Prerequisite : composer, npm, Ubuntu (same commands will run on Windows/Mac as well, if everything else is configured correctly, and you know where to run the commands).
Install CakePHP
composer create-project --prefer-dist cakephp/app cakue
This will download and install CakePHP in the folder cakue
You can call it anything, if you do not give any name, then by default folder name would be app
Install Vue
sudo apt-get install --reinstall gnome-control-center
As a developer
As a developer if someone does all of the above 4 points then that person is "at the very least" a competent developer.
When you read, write communicate and learn - you grow.
Edit: The original title of this gist was "Vue from scratch" but soon (actually from the very initial stage) it took the road of "CakePHP and Vue as monorepo". This still contains almost all the Vue specific items as listed below (the 18-point list is not changed, although some of the items are skipped or have notes added in comments). This is a fairly large piece of text + screenshots (to read and see) but not really time consuming to implement (that's what I tell myself, anyway). Happy reading.... caking and vueing... cakueing perhaps!
Thanks to github.com/pankajvashisht-ucreate for the list
Following is the original 18-point list shared by Pankaj Vashisht for someone who is starting in Vue.js from scratch