Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahmadrosid/learnwise

Open source learning management system (LMS), just like Udemy created with Laravel
https://github.com/ahmadrosid/learnwise

Last synced: 23 days ago
JSON representation

Open source learning management system (LMS), just like Udemy created with Laravel

Awesome Lists containing this project

README

        

# Learnwise

Learnwise is open source learning management system just like Udemy created with [Laravel](https://laravel.com/) and [Fastbootstrap](https://fastbootstrap.com/).

![demo](learnwise-demo.png)

This project inspired by: https://github.com/AntonioErdeljac/next13-lms-platform

## Set up local development

### Prerequisites

- PHP >= 8.1
- Node.js >= 16.xx
- MySQL >= 8.1.0

### Steps

1. Clone the repository:

```sh
git clone https://github.com/ahmadrosid/learnwise
```

2. Make a copy of the `.env` file:

```sh
cp .env.example .env
```

3. Install PHP and Node.js dependencies:

```sh
composer install
npm install
# or
yarn install
# or
pnpm install
```

4. Prepare an empty database and update the following environment variables in the `.env` file accordingly:

```
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=learnwise
DB_USERNAME=root
DB_PASSWORD=
```

5. We use [Xendit](http://xendit.co) as the payment gateway, and therefore, you'll need a Xendit account. If you haven't already, please create one and update these two variables in the `.env` file:

```
XENDIT_SECRET_KEY=
XENDIT_PUBLIC_KEY=
```

6. Perform database migration and key generation:

```sh
php artisan migrate
php artisan key:generate
```

7. Finally, run the server:

```sh
npx concurrently "npm run dev" "php artisan serve"
```

8. After receiving a payment, certain updates are required. To accomplish this, you'll need to expose your local development server using services like [expose](http://expose.dev) or [ngrok](http://ngrok.com). Here's what you need to do:

- **For ngrok**:

1. Visit [ngrok](http://ngrok.com) to create an account.
2. Run the following commands to configure ngrok and share your local server:

```sh
ngrok config add-authtoken
ngrok http 8000
```

- **For expose**:
1. Visit [expose](http://expose.dev) to set up an account.
2. Run the following command to share your local server:
```sh
expose share http://127.0.0.1:8000
```

> Note: These are just a couple of options. There are other services available that can achieve the same purpose.

9. We use [cloudinary](https://cloudinary.com/) to store the resources such as images and videos. Go ahead and set up an account if you haven't. Follow the instructions and adjust these variables accordingly,

```
CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=

PUBLIC_CLOUDINARY_IMAGE_URL=
PUBLIC_CLOUDINARY_VIDEO_URL=
```

10. For security reason, we can create users with administrative privilige by running this command from the project root.

```sh
php artisan app:create-admin
```

then proceed with the prompt.