Before you start, make sure you have these programs installed on your computer:
Git: For cloning the project repository.
Composer: For managing PHP dependencies.
Node.js and npm: For managing JavaScript packages.
PHP (version 7.3 or higher): The programming language used.
MySQL or any other SQL database system: For storing data.
👉 Note: If you don't have these installed, you won't be able to set up the project. Search online for installation guides for each program based on your operating system.
Download the installer suitable for your operating system.
Run the installer and follow the on-screen instructions.
After Installation: Open your SQL management tool (like MySQL Workbench) and create a new database. Name it anything you like, for example, triangle_pos.
What Could Go Wrong:
Installation fails: Make sure you're downloading the correct version for your operating system.
Can't create a database: Ensure the SQL server is running and you're using the correct credentials.
Step 2: Clone the Repository
What to Do: Download the project onto your computer.
How to Do It:
Open your terminal (Command Prompt, PowerShell, Terminal, etc.).
Navigate to the folder where you want the project to be. Use cd your_folder_name to navigate.
If you put in the wrong details, the project won't be able to connect to the database. Double-check your database name, username, and password.
Step 8: Run Migrations and Seeds
What to Do: Create tables in your database and fill them with starter data.
How to Do It:
In the terminal, still in the triangle-pos folder, run:
php artisan migrate --seed
What Could Go Wrong:
If you get an error, make sure your database details in .env are correct and your SQL server is running.
Step 9: Create Symbolic Link for Storage
What to Do: Make sure the project can save files like images.
How to Do It:
In the terminal, still in the triangle-pos folder, run:
php artisan storage:link
What Could Go Wrong:
If you get an error, make sure the storage/app/public folder exists in the triangle-pos folder.
Step 10: Start Development Server
What to Do: Make the project accessible through a web browser.
How to Do It:
In the terminal, still in the triangle-pos folder, run:
php artisan serve
What Could Go Wrong:
If you get an error like Port 8000 already in use, another program is using that port. You can specify a different port by running php artisan serve --port=8080.
Step 11: Access the Application
What to Do: Open the project in your web browser to make sure it works.
How to Do It:
Open your web browser.
In the address bar, type http://localhost:8000 or http://127.0.0.1:8000 and press Enter.
What Could Go Wrong:
If the page doesn't load, make sure the development server is running (Step 10) and you're using the correct address.
Prerequisites
Before you start, make sure you have these programs installed on your computer:
👉 Note: If you don't have these installed, you won't be able to set up the project. Search online for installation guides for each program based on your operating system.
Local Installation Steps
Step 1: Install and Configure SQL Server
triangle_pos
.Step 2: Clone the Repository
cd your_folder_name
to navigate.git is not recognized
, it means Git is not installed. Install it first.ls
ordir
to check the current folder's contents.Step 3: Navigate to Project Directory
No such file or directory
, make sure you cloned the project in the previous step.Step 4: Install Composer Dependencies
triangle-pos
folder.composer is not recognized
, Composer is not installed. Install it first.Step 5: Install NPM Packages
triangle-pos
folder, run:npm is not recognized
, Node.js and npm are not installed. Install them first.Step 6: Setup Environment File
triangle-pos
folder, run:No such file or directory
, make sure the.env.example
file exists in thetriangle-pos
folder.Step 7: Configure Database in
.env
.env
file using a text editor like Notepad or VSCode.Step 8: Run Migrations and Seeds
triangle-pos
folder, run:.env
are correct and your SQL server is running.Step 9: Create Symbolic Link for Storage
triangle-pos
folder, run:storage/app/public
folder exists in thetriangle-pos
folder.Step 10: Start Development Server
triangle-pos
folder, run:Port 8000 already in use
, another program is using that port. You can specify a different port by runningphp artisan serve --port=8080
.Step 11: Access the Application
http://localhost:8000
orhttp://127.0.0.1:8000
and press Enter.Admin Credentials