Skip to content

Instantly share code, notes, and snippets.

@jdecode
Created September 27, 2020 18:05
Show Gist options
  • Save jdecode/f25b66b8993d5ca32c4a25353e9f2ec9 to your computer and use it in GitHub Desktop.
Save jdecode/f25b66b8993d5ca32c4a25353e9f2ec9 to your computer and use it in GitHub Desktop.
Geartable development

Actual code has not started yet and I have been thinking about several ways to accompalish this:

  1. CakePHP, MySQL - No Vue/TailwindCSS/DynamoDB
  2. Slim(PHP), Postgres, Vue/TailwindCSS
  3. Slim(PHP), DynamoDB, Vue/Tailwindcss

Fastest one (for now) would be the first option - more experience, recently worked on this a lot

Taking specific notes from "Noter" development - more on this tomorrow

@jdecode
Copy link
Author

jdecode commented Oct 3, 2020

Keeping these 2 files in a separate folder (to be moved to the main application code later), in a new empty folder run the following command to install CakePHP (using composer):

composer create-project -n --prefer-dist cakephp/app ./

@jdecode
Copy link
Author

jdecode commented Oct 3, 2020

Now move the Dockerfile and docker-compose.yml files (created earlier) to the CakePHP folder.

Additionally, I overwrote the readme file (that's entirely optional for you).

I pushed the code now (CakePHP + Dockerfile + docker-compose.yml) to the git repo here:
https://github.com/jdecode/geartable

@jdecode
Copy link
Author

jdecode commented Oct 3, 2020

Either you can use the steps mentioned above to reach a point where you have CakePHP setup using Docker, or you can clone the repo at https://github.com/jdecode/geartable and follow the instructions

@jdecode
Copy link
Author

jdecode commented Oct 12, 2020

docker-compose run geartable bin/cake bake migration CreateCategories name:string:index:NAME_INDEX photo:string? active:boolean? added:datetime?

docker-compose run geartable bin/cake bake migration CreateProducts category_id:number:index:CATEGORY_ID_INDEX name:string photo:string? active:boolean? added:datetime?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment