2020-07-05 05:08:05 +00:00
|
|
|
![Show Case](https://i.ibb.co/Mhryxcy/Todo-App-Preview-1.png)
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2023-03-05 13:51:28 +00:00
|
|
|
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/supanadit/todo/tree/master.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/supanadit/todo/tree/master)
|
2022-04-15 06:38:08 +00:00
|
|
|
|
2020-06-23 04:40:37 +00:00
|
|
|
# Todo App
|
|
|
|
|
2022-02-06 07:31:06 +00:00
|
|
|
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
|
2020-07-05 05:02:51 +00:00
|
|
|
|
2020-07-18 03:19:52 +00:00
|
|
|
## Demo
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2020-07-18 03:19:52 +00:00
|
|
|
- Host : https://todo.supanadit.com
|
|
|
|
- Email : admin@email.com
|
|
|
|
- Password : 123
|
|
|
|
|
2020-06-28 05:45:34 +00:00
|
|
|
## Requirement
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2020-06-28 05:45:34 +00:00
|
|
|
- PHP 7.4+
|
|
|
|
- Laravel 7.2.5+
|
2020-06-23 16:33:05 +00:00
|
|
|
|
|
|
|
## Quick Start
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2020-07-05 05:02:51 +00:00
|
|
|
- create a database called `todo` or whatever you want
|
2020-06-23 16:33:05 +00:00
|
|
|
- create `.env` file
|
2020-07-05 05:02:51 +00:00
|
|
|
- setup database configuration at `.env` file
|
|
|
|
- `composer install`
|
2020-06-23 16:33:05 +00:00
|
|
|
- `php artisan key:generate`
|
|
|
|
- `php artisan migrate`
|
|
|
|
- `php artisan db:seed`
|
2020-07-05 05:02:51 +00:00
|
|
|
- `php artisan serve`
|
|
|
|
|
|
|
|
#### Apache Configuration for Virtual Host
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2020-07-05 05:02:51 +00:00
|
|
|
```apacheconfig
|
|
|
|
<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>
|
|
|
|
```
|
|
|
|
|
2022-02-06 07:31:06 +00:00
|
|
|
## Docker Way
|
|
|
|
|
2022-02-06 07:32:25 +00:00
|
|
|
This app can run inside docker with official support
|
|
|
|
|
2022-02-06 07:35:06 +00:00
|
|
|
### Via Docker Compose
|
|
|
|
|
2022-02-06 07:32:25 +00:00
|
|
|
```bash
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
2022-02-06 07:31:06 +00:00
|
|
|
|
|
|
|
### Run Migration
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose exec todo-app php artisan migrate
|
|
|
|
```
|
|
|
|
|
|
|
|
### Run Seeder
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose exec todo-app php artisan db:seed
|
|
|
|
```
|
|
|
|
|
2022-05-02 10:14:58 +00:00
|
|
|
## Development Using Docker
|
|
|
|
|
|
|
|
### Run Application
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
### Installing / Updating Dependencies
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml exec -w /srv todo composer install # Composer Install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Generate Key
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan key:generate # Generate Key
|
|
|
|
```
|
|
|
|
|
|
|
|
### Database Migration
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan migrate
|
|
|
|
```
|
|
|
|
|
|
|
|
### Database Seed
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan db:seed
|
|
|
|
```
|
|
|
|
|
|
|
|
### Shutdown Application
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml down
|
|
|
|
```
|
|
|
|
|
|
|
|
### Updating `.env`
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml exec -w /srv todo php artisan config:cache
|
|
|
|
```
|
|
|
|
|
|
|
|
### Rebuilding Dockerfile
|
|
|
|
|
|
|
|
```bash
|
|
|
|
docker-compose -f docker-compose.dev.yml build
|
|
|
|
```
|
|
|
|
|
2022-02-06 07:31:06 +00:00
|
|
|
### 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
|
|
|
|
|
2020-07-05 05:02:51 +00:00
|
|
|
## Note
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2020-07-05 05:02:51 +00:00
|
|
|
If you want to use forgot password feature, you must provide your email and password at `.env`
|
|
|
|
|
|
|
|
## Support
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2020-07-05 05:02:51 +00:00
|
|
|
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/N4N01CIMZ)
|
2020-06-28 05:45:34 +00:00
|
|
|
|
|
|
|
## License
|
2022-02-06 07:31:06 +00:00
|
|
|
|
2020-07-05 05:02:51 +00:00
|
|
|
Copyright 2020 Supan Adit Pratama
|
|
|
|
|
2022-02-06 07:31:06 +00:00
|
|
|
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
|
2020-07-05 05:02:51 +00:00
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
2022-02-06 07:31:06 +00:00
|
|
|
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.
|