template | heading | read_time |
---|---|---|
templates/complete-guide.html |
Create a Vue app |
1 min |
For this guide, you will be creating a simple Vue app using Vite{:target="_blank"}, a modern, fast and lightweight tool that helps you quickly set up and develop modern JavaScript apps.
Open a terminal, change directory to where you want to initialize the project, and run the following command to create your first Vue sample app.
npm create vite@latest asgardeo-vue -- --template vue-ts
Running this command will create a folder with a ready-to-run boilerplate Vue project, with a development server to run the project and instantly reload changes to the project in your browser without manual refresh.
Once the application is created, install the dependencies using the following command.
cd asgardeo-vue
npm install
Then run the sample in the development mode. This allows you to see real-time updates and debug the app as you make changes.
npm run dev
Confirm that the dev server is up and running by verifying the output in the terminal. Then, navigate to http://localhost:5173{:target="_blank"} and you should see the sample app working in the browser.
{: width="600" style="display: block; margin: 0;"}
At this point, you have a simple yet fully functional Vue app. In the next step, let's try to integrate an OIDC SDK with the app.