This sample project uses Vue.js and Quasar Framework. It provides only Web UI. So, I recommend using the golang-webapp-sample project as Back End Application.
Perform the following steps:
- Download and install Node.js.
- Download and install Visual Studio Code(VS Code).
- Install vetur extension for VS Code.
- Clone this repository.
- Download and install npm packages.
npm install
Perform the following steps:
- Perform golang-webapp-sample project.
- Start the development server.
npm run dev
- When startup is complete, the console shows the following message:
> vuejs-webapp-sample@3.0.0 dev > vite --mode development VITE v4.2.1 ready in 1362 ms ➜ Local: http://localhost:3000/ ➜ press h to show help
- Access the following URL in the Chrome.
http://localhost:3000
Perform the following command:
npm run build
The following figure is the map of this sample project.
- vuejs-webapp-sample
+ public … Contains resouces of this project.
- src
+ assets … Contains source codes that Webpack doesn't need to build.
+ components … Contains components of Vue.
+ api … Implement the common library for Ajax.
+ router … Define Vue Router.
+ store … Define Vuex
+ types … Define types of the view models.
+ views … Define views of this project.
- App.vue … Define a base view of this project.
- main.js … Entry point.
- package.json … Define npm packages.
There are the following views in this sample.
View Name | File Name | Description |
---|---|---|
Login View | LoginView.vue |
The view for session authentication with username and password. |
Home View | HomeView.vue |
The view showing search results. |
About View | AboutView.vue |
The view showing this application information. |
This sample uses the following library.
Library Name | Version | Description |
---|---|---|
vite | 4.1.4 | The tool for Vue.js Development. |
Vue.js | 3.2.47 | JavaScript Framework |
Vue Router | 4.1.6 | Library for Routing. |
Pinia | 2.0.32 | Flux library for Vue.js |
Aixos | 1.4.0 | library for Ajax. |
Quasar Framework | 2.11.9 | CSS Framework |
Please read CONTRIBUTING.md for proposing new functions, reporting bugs and submitting pull requests before contributing to this repository.
The License of this sample is MIT License.