Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A self-hosted SPA to simplify course creation and management

License

NotificationsYou must be signed in to change notification settings

Ilyas-Codes/eCourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eCourse - My Courses

eCourse is a self-hosted SPA designed to simplify course creation and management, some of the features include:

  • ability to create video and text based content
  • ability to assign courses to users
  • ability to track users progress

Demo

Use the following credentials for testing the demo:

Username:ilyas
Password:ecourse123

Tech Stack

UI Framework -Svelte

CSS -TailwindCSS

Icons -Iconify

Backend -PocketBase

Hosting -PocketHost

Getting Started

Get started by running the project locally, simply follow these steps:

  1. Clone/download the repo

  2. Grab the PocketBase executable for your OS from:https://pocketbase.io/docs/ and drop it at the root of thepb folder.

  3. Start the PocketBase server

cd pb./pocketbase serve
  1. Start the Vite server
cd uinpm install&& npm run dev

Customization

App name, logo, and colors can be customized using thecustomize.json file.

Deployment

One neat thing about PocketBase is that it can also serve our static frontend assets. to do that simply follow these steps:

  1. Add the server URL where your PocketBase instance is hosted toVITE_PROD_PB_URL in the.env file

  2. Build a production-ready bundle

cd uinpm run build
  1. Copy the contents of thedist folder over topb_public

Using Docker

You can use the following Dockerfile to automate the steps above:

FROM node:20.11.1-busterWORKDIR /RUN git clone https://github.com/Ilyas-Codes/eCourse.gitARG PB_VERSION=0.21.3ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zipRUN unzip /tmp/pb.zip -d /eCourse/pbWORKDIR /eCourse/uiRUN sed -i's/^VITE_PROD_PB_URL=.*/VITE_PROD_PB_URL=http:\/\/127.0.0.1:8090/' .envRUN npm installRUN npm run buildRUN mv dist/* /eCourse/pb/pb_publicEXPOSE 8090CMD ["/eCourse/pb/pocketbase","serve","--http=0.0.0.0:8090"]

Feedback & Suggestions

Feel free to open an issue/PR if you find any bugs or want to request new features.

License

Licensed under the MIT License, Copyright © 2024

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp