Self hosted simple looking todo application
Go to file
2023-03-05 21:05:29 +07:00
.circleci ci: fix docker push 2023-03-05 20:52:37 +07:00
.github Create FUNDING.yml 2020-07-05 12:45:53 +07:00
app feat: illuminante facades url 2022-04-15 11:29:50 +07:00
bootstrap first commit 2020-06-23 11:40:37 +07:00
config first commit 2020-06-23 11:40:37 +07:00
database Major Update with many function 2020-06-28 11:13:27 +07:00
public Reduce project size 2020-07-12 10:27:33 +07:00
resources feat: update to 1.0.6 in admin page 2023-03-05 21:05:29 +07:00
routes feat: remove force https from web.php 2022-04-15 11:11:07 +07:00
storage first commit 2020-06-23 11:40:37 +07:00
tests first commit 2020-06-23 11:40:37 +07:00
.dockerignore fix: .dockerignore 2022-05-02 20:37:13 +07:00
.drone.yml feat: auto prune image docker 2022-04-15 13:40:19 +07:00
.editorconfig Keyboard shortcut feeling 2020-06-23 23:33:05 +07:00
.env.docker feat: set to production env 2022-04-15 10:17:19 +07:00
.env.example Keyboard shortcut feeling 2020-06-23 23:33:05 +07:00
.gitattributes Keyboard shortcut feeling 2020-06-23 23:33:05 +07:00
.gitignore fix: .dockerignore 2022-05-02 20:37:13 +07:00
.styleci.yml Keyboard shortcut feeling 2020-06-23 23:33:05 +07:00
artisan first commit 2020-06-23 11:40:37 +07:00
Caddyfile feat: development support with docker 2022-05-02 17:14:58 +07:00
composer.json first commit 2020-06-23 11:40:37 +07:00
composer.lock first commit 2020-06-23 11:40:37 +07:00
docker-compose.dev.yml feat: development support with docker 2022-05-02 17:14:58 +07:00
docker-compose.yml fix: driver not found 2022-05-02 20:27:57 +07:00
Dockerfile fix: driver not found 2022-05-02 20:27:57 +07:00
LICENSE Change license 2020-07-05 12:14:21 +07:00
package-lock.json first commit 2020-06-23 11:40:37 +07:00
package.json first commit 2020-06-23 11:40:37 +07:00
PHP.Dockerfile feat: development support with docker 2022-05-02 17:14:58 +07:00
phpunit.xml first commit 2020-06-23 11:40:37 +07:00
README.md chore: change status pipeline to circle ci 2023-03-05 20:51:28 +07:00
server.php first commit 2020-06-23 11:40:37 +07:00
webpack.mix.js first commit 2020-06-23 11:40:37 +07:00

Show Case

CircleCI

Todo App

Self Hosted Simple Looking Todo Application, powered by Open Source framework such as Laravel + Admin LTE, customizable also beginner will easily understand the flow and the structure of this application

Demo

Requirement

  • PHP 7.4+
  • Laravel 7.2.5+

Quick Start

  • create a database called todo or whatever you want
  • create .env file
  • setup database configuration at .env file
  • composer install
  • php artisan key:generate
  • php artisan migrate
  • php artisan db:seed
  • php artisan serve

Apache Configuration for Virtual Host

<VirtualHost *:80>
    DocumentRoot "/srv/http/todo/public"
    
    ServerAdmin webmaster@localhost
    ServerName todo.test
    
    <Directory "/srv/http/todo/public">
        DirectoryIndex index.php
        AllowOverride All
        Options FollowSymlinks
        Require all granted
    </Directory>
    
    ErrorLog "/var/log/httpd/todo.test-error_log"
    CustomLog "/var/log/httpd/todo.test-access_log" common
</VirtualHost>

Docker Way

This app can run inside docker with official support

Via Docker Compose

docker-compose up -d

Run Migration

docker-compose exec todo-app php artisan migrate

Run Seeder

docker-compose exec todo-app php artisan db:seed

Development Using Docker

Run Application

docker-compose -f docker-compose.dev.yml up -d

Installing / Updating Dependencies

docker-compose -f docker-compose.dev.yml exec -w /srv todo composer install # Composer Install

Generate Key

docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan key:generate # Generate Key

Database Migration

docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan migrate

Database Seed

docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan db:seed

Shutdown Application

docker-compose -f docker-compose.dev.yml down

Updating .env

docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan config:cache

Rebuilding Dockerfile

docker-compose -f docker-compose.dev.yml build

Troubleshooting MySQL Won't Run In Docker

Run this script sudo chown -R 1001:1001 mysql

Because we used Bitnami distribution version of MySQL, so we need to change the permission of mysql folder, since it also described in docker page of bitnami

Note

If you want to use forgot password feature, you must provide your email and password at .env

Support

ko-fi

License

Copyright 2020 Supan Adit Pratama

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.