Installing on Localhost
This guide will walk you through the installation process for setting up aptree, a modern, open-source learning platform built using the TALL stack—Tailwind CSS, Alpine.js, Laravel, and Livewire.
Introduction
This guide will walk you through the installation process for setting up aptree, a modern, open-source learning platform built using the TALL stack—Tailwind CSS, Alpine.js, Laravel, and Livewire.
Prerequisites
- PHP >= 8.0
- Composer
- npm or yarn
- Database (MySQL, PostgreSQL, SQLite, etc.)
Steps
1. Clone the aptree Repository
First, clone the aptree repository from GitHub (or wherever your project is hosted) to your local machine.
gh repo clone Aptree-Learning/Community_Edition
2. Navigate to the Project Directory
Navigate into the aptree directory.
cd aptree
3. Install PHP Dependencies
Run the following command to install the necessary PHP dependencies.
composer install
4. Install JavaScript Dependencies
Next, install all JavaScript dependencies using npm.
npm install
5. Set Up Environment Variables
Copy the .env.example
file to create a new .env
file.
cp .env.example .env
6. Generate Application Key
Generate a new application key for your Laravel application.
php artisan key:generate
7. Set Up Database
Edit the .env
file to add your database credentials.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_password
then migrate the database
php artisan migrate
php artisan db:seed
8. Compile Assets
Compile your assets using npm.
npm run dev
or if you are using yarn
yarn dev
9. Run the Development Server
Finally, start the Laravel development server.
php artisan serve
This will start the development server, and your aptree platform will now be accessible at http://127.0.0.1:8000
That's it! You've successfully set up aptree using the TALL stack on your localhost. Explore the platform and enjoy the advanced features for modern learning and content management!
For any issues or further guidance, feel free to consult the aptree documentation or join our community forum.