Giter Site home page Giter Site logo

staff_website's Introduction

Pheramor Banana System

Install npm

Using npm:

$ npm install

Using yarn:

$ yarn

Install composer

$ composer install

Configuration

Copy .env file and generate key by following command

 cp .env.example .env
 php artisan key:generate

You should set host url and DB connection, mail server information on .env file.

 APP_URL=<YOUR_HOST_URL>  // For example, https://banana.pheramor.com

 DB_HOST=<DB_HOST>      // 127.0.0.1 or localhost
 DB_PORT=<DB_PORT>      // 3306 by default
 DB_DATABASE=<DB_NAME>
 DB_USERNAME=<USER>
 DB_PASSWORD=<PASSWORD>

 MAIL_DRIVER=smtp
 MAIL_HOST=<MAIL_HOST>
 MAIL_PORT=<MAIL_PORT>
 MAIL_USERNAME=<MAIL_USERNAME>
 MAIL_PASSWORD=<MAIL_PASSWORD>
 MAIL_ENCRYPTION=tls

Development for js, scss

$ npm run watch or yarn run watch

Production

$ npm run prod or yarn prod

Reminer Emailing System Configuration (Linux)

Create tables for emailing.

$ CREATE TABLE settings ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, setting_key VARCHAR(30) NOT NULL, setting_value VARCHAR(30) NOT NULL );
$ INSERT INTO settings (setting_key, setting_value) VALUES ("ship_update_email", 1), ("sales_update_email", 1), ("account_update_email", 1), ("swab_update_email", 1), ("sequence_update_email", 1), ("first_reminder_email", 7), ("second_reminder_email", 10);
$ CREATE TABLE email_queue ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, product_id INTEGER NOT NULL, send_order INTEGER DEFAULT 1, send_date DATETIME NOT NULL );

You should create cron job.

in case of the unit in day

$ crontab -e
$ 0 0 * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

staff_website's People

Contributors

talentedev 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.