This is a blogging platform, combining my interest and admiration of the effect that Quora
and Stackoverflow
has on developers. So I am trying to merge them or something like that or even far fetch from either, worse together. This project is purely written Php.
Well, I am a human being and some statement may be read by other human beings and others would like to sue me. I do not own any of the Brand names or registered names used here
or have anything doing with them directly or implied. I am only using those techs to make my work here, easier.I do not also claim, should i just add, that I am related to these tech
or any tech that'd be mention or used with mentioning it.
- Php 7
- Git
- Bootstrap 4
- Font-awesome-4.7.0
- Tinymce
- Jquery-3.4.1
- PhpMailer
- Gmail server (used once to test phpmailer)
For now I am not glued to any standard as there is.
- I am trying to imitate MVC pattern or at least I am convinced of it due to the file structure.
- I mostly use snake case,
eg: var_name
, for everything, from variable naming to file naming. - My file naming appear consistent in the
controllers
directory where painfully, all file must end with processor.eg: hello_world_processor.php
. - Anything that can or could be a function is made a function after implementation.
- controllers
- includes
- statics (js, css, img)
- templates
- vendor (phpmailer)
- anything else is a view or
LICENSE
,README
,.gitignore
,24pill_code_db.sql
,CODING_STANDARDS
,TODO
, etc.
There is more files. TODO
is my issue tracker file, any error I am not working on that pops up is reported there.
There is no testing yet, those i intend to use PhpUnitTest and Qunit. Well, I do test certain parts that needs trial before implementation.
This is a Php version of this project, without a framework (I don't really like the idea of a framework even with its merits). I intend to use a Php framework perhaps Laravel or CodeIgniter or Symfony. I am not sure because I am not into frameworks, if they are not seen as extensions. I will write the same (or similar) project using:
- Python, considerably
flask
. - JavaScript,
nodejs
and a front-end framework likevue.js
but not sure yet.
In offline mode I use the actual files in the tech stated above but when i am pushing, I'd wanted to comment them out and use the available CDNs. So if it happens to crush or behave unpredictably, kindly check to see if the dependencies are met.
How to set up 24pill-code on your local server
Here I assume you have Xammp/Lammp/Mammp installed and you are familiar with how to fire it up and surely do your way around. You git set up and a registered github account. I am using Xammp.
- First clone 24pill-code. Click on the green button with the text
Clone or Download
. - Copy the url -
https://github.com/Otumian-empire/24pill-code.git
from the url field. - Create a folder and initialize git. This is what I meant. Do the following:
Ctrl + Alt + T
- opens terminalcd /opt/lammp/htdocs
- moves you to the htdocs directorymkdir 24pill-code
- creates a new folder called 24pill-codecd 24pill-code
- moves you into the new foldergit init
- starts gits- or at step 3, just do
git init 24pill-code
thencd 24pill-code
git pull https://github.com/Otumian-empire/24pill-code.git
- finally,
sudo /opt/lammp/lammp start
to fire up xammp - Open your browser and enter,
localhost/24pill-code
into the address bar - In a new tab, open
localhost/phpmyadmin
- Create a database of name,
24pill_code_db
- Click on
import
thenbrowse
and then navigate to24pill_code_db.sql
which is part of the files in the root directory,24pill-code/
and select it. - Pull the scroll bar down and click on the
Go
button below. - Refresh the previous tab
- Good job..You are done.
Basically, just copy this lines and save it in this path includes/gmail_configuration.php
. This contains email and password the app. This is note the recommended approach.
<?php
include_once "functions.php";
// if (!check_session()) {
// redirect_to("https://en.wikipedia.org/wiki/Goliath");
// exit;
// exit;
// }
// configurations for the GMAIL ACCOUNT
define('GUSERNAME', 'username');
define('GPASSWORD', 'password');
define('GEMAIL', 'email');
// replace username, password and email
?>
Before you make any changes, locate the TODO
file and see what you can do in it. Kindly remove that line when you are sure you are done. When you encounter any problem whilst working on another, kindly report it in TODO
as descriptively as possible.
Follow the steps above and create a new brach
for your changes. Send a PR.