<aside> <img src="https://prod-files-secure.s3.us-west-2.amazonaws.com/c3942e98-5f9b-47e8-8676-2f507eb3b25c/344d0d49-169c-456a-aad9-0015ece6b9ff/Group_2865.png" alt="https://prod-files-secure.s3.us-west-2.amazonaws.com/c3942e98-5f9b-47e8-8676-2f507eb3b25c/344d0d49-169c-456a-aad9-0015ece6b9ff/Group_2865.png" width="40px" /> Home


File Structure

installation

Setup

APIs Setup

Website Basics

VPS Setup

Contact us


</aside>

Installation

  1. Download From Codecanyon
  2. Extract the downloaded ZIP file to your desired location
  3. Open a terminal or command prompt and navigate to the extracted project directory
  4. Ensure you have Node.js and npm (Node Package Manager) installed on your system

image.png

Install Node.js

To install Node.js, follow these steps based on your operating system.

  1. Visit the Node.js Official Website:

    Go to https://nodejs.org to download Node.js. You will see two main versions:

    Choose the LTS version for production-ready applications or the Current version if you're experimenting with new features.

  2. Download the Appropriate Installer:

  3. Follow the Installation Prompts:

    Once the installer is downloaded, follow the step-by-step instructions to complete the installation. Make sure to install npm (Node Package Manager), which is bundled with Node.js by default.

  4. Verify Installation:

    Open a terminal (Command Prompt on Windows, Terminal on macOS/Linux) and run the following commands to check if Node.js and npm are installed correctly:

    
    node --version
    npm --version
    
    

    The output should display the installed version numbers of both Node.js and npm, which confirms the successful installation.

2. Frontend: Next.js Setup

Navigate to the frontend directory to set up the Next.js app:


cd web app


npm install


NEXT_PUBLIC_API_BASE_URL="<http://64.227.117.226/api>" // Backend URL
NEXT_PUBLIC_ENV="production"
// stripe Keys
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=pk_test_**********************************************************************
STRIPE_SECRET_KEY=sk_test_***********************************************

npm run dev

Install Laravel

Step 1: Install Composer

Composer is a dependency manager for PHP that you'll need to install Laravel. Follow the steps based on your operating system.

Windows:

  1. Download the Composer Setup:

    Visit the Composer official website and download the Composer-Setup.exe file for Windows.

  2. Run the Installer:

    During the installation process, make sure PHP is selected in your system's PATH, or provide the path to your PHP installation manually.

  3. Verify Installation:

    After installation, open the Command Prompt and run:

    
    composer --version
    
    

    If everything is correctly installed, you should see the version of Composer.

macOS and Linux:

  1. Install Composer:

    Open your terminal and run the following commands to download and install Composer globally:

    
    php -r "copy('<https://getcomposer.org/installer>', 'composer-setup.php');"
    php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e2b881f00e0b09e0c3b2b33c4411b734f51f32cd6e6e8f1a5a19') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
    php composer-setup.php
    php -r "unlink('composer-setup.php');"
    
    
  2. Move Composer to a global path:

    
    sudo mv composer.phar /usr/local/bin/composer
    
    
  3. Verify Installation:

    Run the following command to ensure Composer was installed correctly:

    
    composer --version
    
    

Step 2: Install Laravel

Once Composer is installed, you can now use it to install Laravel.

  1. Open a Terminal or Command Prompt:

    Ensure Composer is globally available.

  2. Install Laravel via Composer:

    Run the following command to install the Laravel installer globally:

    bash
    Copy code
    composer global require laravel/installer
    
    
  3. Ensure Laravel Installer is in PATH:

    On macOS and Linux, you might need to ensure that Composer's global vendor/bin directory is in your PATH. Add this line to your .bashrc, .bash_profile, or .zshrc file:

    
    export PATH="$HOME/.composer/vendor/bin:$PATH"
    
    

    For Windows, it should be automatically added.

  4. Navigate to Your Project:

    
    cd cleartext_ai
    
    
  5. Run Laravel's Development Server:

    Start the Laravel development server by running:

    
    php artisan serve
    
    

    This will start a local development server at http://localhost:8000.


Step 3: Verify Laravel Installation

After running php artisan serve, open your browser and go to:


<http://localhost:8000>

You should see the Laravel welcome page, which confirms that Laravel has been installed and is running correctly.