Giter Site home page Giter Site logo

galihazizif / birthday-message-assignment Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 196 KB

This repo is intended for fulfilling task assignment

License: BSD 3-Clause "New" or "Revised" License

PHP 98.23% Batchfile 0.26% Shell 0.81% Awk 0.31% CSS 0.38%

birthday-message-assignment's Introduction

User Birthday Mail Message.


This task assignment is built using Yii2 Framework

Latest Stable Version Total Downloads build

DIRECTORY STRUCTURE

  commands/           contains console commands (controllers)
  config/             contains application configurations
  controllers/        contains Web controller classes
  models/             contains model classes
  runtime/            contains files generated during runtime
  vendor/             contains dependent 3rd-party packages
  views/              contains view files for the Web application
  web/                contains the entry script and Web resources

CONFIGURATION

Database

Edit the file config/db.php with real data, for example:

return [
    'class' => 'yii\db\Connection',
    'dsn' => 'mysql:host=localhost;dbname=yii2basic',
    'username' => 'root',
    'password' => '1234',
    'charset' => 'utf8',
];

AVAILABLE API

User

POST base_url/user/ Payload

{
	"firstname": "Roger",
	"lastname": "Chin",
	"email": "[email protected]",
	"birthday": "1992-11-21",
	"location":"Singapore",
	"time_offset": 9
}

CRON

Populating Scheduler Can Be set Every 5 Minutes, to populate mail_scheduler table based from customer user data

php yii mail-queue/process-mail-queue

Send Email Can Be set Every 3 Minutes, to send email using provided API

php yii mail-queue/process-mail-queue

birthday-message-assignment's People

Watchers

Galih Azizi Firmansyah avatar  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.