Welcome to the CSBOX Education LMS (Learning Management System) repository! This project is designed to help you quickly set up and deploy an internal educational platform using SvelteKit, TailwindCSS, and Supabase. This README will guide you through the setup process and provide an overview of the features and customization options available in this repository.
- SvelteKit: A cutting-edge framework for building modern web applications with a focus on performance and developer experience.
- TailwindCSS: A highly customizable CSS framework for crafting stylish and responsive user interfaces.
- Supabase: An open-source Firebase alternative that offers authentication, database, and storage services.
Follow these steps to set up and utilize the CSBOX Education LMS:
-
Clone the Repository: Clone this repository to your local environment using the following command:
git clone https://github.com/csboxio/csbox-frontend
-
Install Dependencies: Navigate to the repository directory and install the required dependencies:
cd csbox-frontend npm install
-
Configure Environment Variables:
Create a
.env
file in the root directory and set the necessary environment variables:PUBLIC_SUPABASE_URL= PUBLIC_SUPABASE_ANON_KEY= PRIVATE_CLOUDFLARE_SECRET_KEY= PUBLIC_SUPABASE_ID= DEVMODE=true PRIVATE_ADMIN_MASTER_KEY=
-
Start the Development Server: Launch the SvelteKit development server by executing the following command: ** Developers can have issues with ad-blockers blocking module imports.
npm run dev --host
The application will be accessible at
http://localhost:5173
.Some platforms are
http://localhost:5174
.
ngrok http 5173 --domain joint-dear-lamb.ngrok-free.app
-
Access the Protected API:
The internal API endpoint is
/api
. To access protected routes, implement authentication and authorization using Supabase. Refer to thesrc/routes/api/
file for an example.
- Port 5174
- Port 5173
- Port 4173
- Port 4174
Move to directory
cd artillery
Run test
artillery run first-test.yml --output test.json
Generate Report
artillery report test.json
If canvas has (page error) reinstall redis.