Git Product home page Git Product logo

adact's Introduction

AWorDS

For both macOS & Linux

NOTE: Match7.java isn't working properly on macOS.

Installation

php 5.6.1+ is required.

Edit Config.php

Edit the Config.php located at the root of the project, otherwise mail client, mysql server may not work. At least the following constants are needed to be edited:

Interface Config{
    const MYSQL_USER = 'root';
    const MYSQL_PASS = 'root';
    const MYSQL_DB   = 'awords';
    .
    .
    .
    const MAIL_USER = '[email protected]';
    const MAIL_PASS = 'example_password';
    const MAIL_FROM = '[email protected]';
    .
    .
    .
}

Disable output buffering

Set output_buffering = off in php.ini file.

Enable Cron Job for running pending project(s)

bash ./scripts/add_to_crontab.sh

Run server

php -S 127.0.0.1:8080 ./router.php

(Also works with Apache2 when htaccess and modrewrite enabled)

Enable directory writing for /Projects

(This process is only applied to Linux distributions with Apache Server)

Help Link

  1. Check which user is running:
    ps aux
  2. Add that user (assuming www-data) to the group:
    sudo chgrp -R  www-data ./ && sudo chmod -R g+w ./

Contributing

For the sake of convenience, two scripts have been added in the scripts folder.

  • deploy.sh : Run this before committing as it'll switch the configuration file (ie. Config.php) to the factory mode, as well as take care of DB. It takes one argument (sql version number) as it backs up the new sql file automatically.
  • revert.sh : Revert the configuration file to the one that you were using previously (if you were)

Not Implemented

  • Edit last project
  • Fork this project
  • Change info
  • Delete account
  • Homepage

adact's People

Contributors

muntashirakon avatar mujtahid-akon avatar

Watchers

James Cloos 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.