Code Monkey home page Code Monkey logo

beautycare's Introduction

The BeautyCareConnect Project

The Beauty Care Connect project is an inhouse project of TheMobileProf (www.themobileprof.com), built with Laravel 6 amd Vue

TheMobileProf.com

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

Cloning the repo

Being built on Laravel, these are the steps for setting up this Repo.

Requirements:

  1. PHP >= 7.2.0
  2. Composer
  3. npm
  4. 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!

beautycare's People

Contributors

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