- Notifications
You must be signed in to change notification settings - Fork47
A self-hosted SPA to simplify course creation and management
License
Ilyas-Codes/eCourse
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
Use the following credentials for testing the demo:
Username:ilyas
Password:ecourse123
UI Framework -Svelte
CSS -TailwindCSS
Icons -Iconify
Backend -PocketBase
Hosting -PocketHost
Get started by running the project locally, simply follow these steps:
Clone/download the repo
Grab the PocketBase executable for your OS from:https://pocketbase.io/docs/ and drop it at the root of the
pb
folder.Start the PocketBase server
cd pb./pocketbase serve
- Start the Vite server
cd uinpm install&& npm run dev
App name, logo, and colors can be customized using thecustomize.json
file.
One neat thing about PocketBase is that it can also serve our static frontend assets. to do that simply follow these steps:
Add the server URL where your PocketBase instance is hosted to
VITE_PROD_PB_URL
in the.env
fileBuild a production-ready bundle
cd uinpm run build
- Copy the contents of the
dist
folder over topb_public
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"]
Feel free to open an issue/PR if you find any bugs or want to request new features.
Licensed under the MIT License, Copyright © 2024
About
A self-hosted SPA to simplify course creation and management
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.