The Beauty Care Connect project is an inhouse project of TheMobileProf (www.themobileprof.com), built with Laravel 6 amd Vue
We are a team of developers working exclusively on our mobile phones, and delivering world class results using cutting edge web development Technologies. Our tool of choice is Neovim on Termux on Android
Being built on Laravel, these are the steps for setting up this Repo.
- PHP >= 7.2.0
- Composer
- npm
- SQLite (development) / Postgre (Production)
Step 0: If you are developing on Termux (Android), setup a ~/sites directory as the development directory for your projects, do not use the symlinked ~/storage directory to avoid composer and npm install errors.
mkdir ~/sites
Step 1: From your development directory, clone the beautycareconnect repo.
git clone https://github.com/themobileprof/beautycare
Step 2: Navigate into the directory you just created, and run composer install
, to have composer install all the PHP dependencies.
Step 3: Then run npm install
, to install the JavaScript dependencies.
Step 4: Make a .env file by copying from .env.example.
cp ~/sites/beautycare/.env.example ~/sites/beautycare/.env
Step 5: Make a local Sqlite database within the Laravel installation for development.
sqlite3 ~/sites/beautycare/database/database.sqlite
This will create a new database file database.sqlite and open the sqlite console. To see the full path to the database you just created, type .database
in the console. Copy this full path for Step 7 below.
Note: Use
.quit
to exit the sqlite console.
Step 6: Generate a unique app encryption key for Laravel. Run:
php artisan key:generate
Step 7: Edit the .env file you created in step 4 nvim ~/sites/beautycare/.env
, and change this line to use Sqlite instead of MySql:
DB_CONNECTION=mysql
to
DB_CONNECTION=sqlite
and add the full path to your Sqlite database which you copied in Step 5, by changing
DB_DATABASE=laravel
to
DB_DATABASE=/data/data/com.termux/files/home/sites/beautycare/database/database.sqlite
Save and close the file.
Note: in Neovim/Vim saving and quiting is
:wq
.
Step 8: Migrate your database to the Sqlite database you just created, by running:
php artisan migrate
Your setup is ready!