A starter kit for web development.
$ update docker-compose db environnement
$ rename App/Config/Database_.php to App/Config/Database.php
$ docker-compose up
$ yarn
$ yarn run dev
$ yarn run prod
Go to Adminer GUI, (localhost:8080, docker-compose.yml settings)
SQL :
CREATE TABLE users (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO users (username, password, created_at) VALUES ('admin', 'password', now())
Change App/Config/Database.php according to docker-compose.yml config
TODO : Clean this repo with back stuff & move it to another repo -> Split in 2 repos, one front & one back Script for faster startup & db config (id, password, config prompt)