Coder Social home page Coder Social logo

taskman's Introduction

A simple Task Manager app

Test instance

Application for making a simple list of tasks

Screenshots

Main screen Main

A single task view View

Simple validation Validation

Custom error messages Error

Requirements

  • PHP 8.3
  • MySQL (tested on 8.0.35)

Install

clone repository

$ git clone https://github.com/MikusR/2024-01-17-taskman.git

use Composer to get dependencies

$ composer install

copy .env.example to .env and configure access to database for example:

TIMEZONE = "Europe/Riga"
DBNAME = "task_manager"
DBUSER = "taskman"
PASSWORD = "taskman"
HOST = "localhost"
DRIVER = "pdo_mysql"

database uses this table

create table tasks
(
    id               int auto_increment
        primary key,
    task_name        varchar(255) null,
    task_description text         null,
    created_at       datetime     null
);

run the application from /public directory for example using the built-in webserver

 php -S localhost:8765 -t .\public

If using apache then check if /etc/apache2/apache2.conf has AllowOverride and use .htaccess. Also check if mod_rewrite is enabled

RewriteEngine On
RewriteCond %{REQUEST_URI} : :$0 ^(/.+)/(.*)::\2$
RewriteRule .* - [E=BASE:%1]
RewriteCond %{ENV : REDIRECT_STATUS} =""
RewriteRule ^index\.php(? : /(.*)|$) %{ENV:BASE}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ %{ENV : BASE}/index.php [L]

Used packages

  • doctrine/dbal (access to database)
  • nesbot/carbon (better time and date)
  • twig/twig (template engine)
  • https://simplecss.org/ (styling)
  • nikic/fast-route (for routing)
  • vlucas/phpdotenv (configuration environment)

App structure and choices

taskman's People

Contributors

mikusr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.