To install Bradypus with the terminal and git you need:
- a connection to the Internet
- Git
- a terminal / command line
Typically these dependecies are met by default on Linux/Unix (included MacOS X) systems. Since the Anniversary Update also on Windows 10 it is posibble to enable the Bash shell of Ubuntu Linux.
TL;DR
git clone -b master --single-branch https://github.com/bdus-db/BraDypUS.git && \
cd BraDypUS && \
mkdir projects && \
php -S localhost:8000Installation
Before installation, you want probably to check your local environment. If you already did, we are ready to go.
Get files from remote repository using git
bashgit clone -b master --single-branch https://github.com/bdus-db/BraDypUS.gitGit will create a new directory named BraDypUS with all the need files. In details:
-b mastermeans that the master, i.e. the main branch will be retrived. Version 4 lives here.--single-branchwill prevent git from cloning everything, only the requeste branch will be downloaded
Move inside the newly created directory named BraDypUS
bashcd ../BraDypUSMake projects folder
bashmkdir projectsStart PHP's web server (if no local web server is available). Done!
bashphp -S localhost:8000
To stop the PHP's web server type CRL+C.
Now you are ready to create your first web database application. Open the browser and go to: http://localhost:8000/
Uninstalling
By removing the BraDypus directory created by the git command will remove all the installed packages. Bradypus will not copy or install files in your system.
Verify the local environment
Check if php is installed. Open a terminal and type:
php -vYou should see something like (version might be different, but please make sure it is equalror bigger than 7.0):
PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend TechnologiesCheck if php_pdo for sqlite is available
php -i | grep pdo_sqliteYou should read something like:
pdo_sqliteIf you are going to use MySQL or PostgreSQL, you could test using:
php -i | grep pdo_mysqlor
php -i | grep pdo_pgsqlCheck if git is available
git --versionYou should read something like:
git version 2.24.2 (Apple Git-127)