Before running the code, ensure you have the following installed:
- Node.js and npm (Node Package Manager)
-
Navigate to the project directory:
cd path/to/your/project
-
Install npm dependencies:
npm install
-
Install dotenv package:
npm install dotenv
-
Install svelte-kit:
npm install svelte-kit
-
Create a
.env
file in the root of your project directory. -
Add the following environment variables to the
.env
file:PRIVATE_API_BASE_URL=your_api_base_url PRIVATE_BEARER=your_bearer_token
-
Sync SvelteKit:
svelte-kit sync
-
Start the development server:
npm run dev
Your application should now be running. Open your browser and navigate to the provided local server URL to view the project.