This template was created to help web developers jumpstart their development. It uses Vue 3 with Composition API and Typescript support and added Bootstrap 5 with support for SASS and Dark Themes.
Dark theme support in Bootstrap, by default, comes from version 5.3.0, which is currently an Alpha release. Therefore, it should be installed explicitly, and you should test it well before adding it to the production environment.
There are two different layouts (Default and Page) — the first one for the home page and the second for the rest. Layouts are changed based on Nested Named Routes in Vue Router. This way does not use dynamic imports and works faster.
PROJECT /* Entry point and configurations */
│ .env.development
│ .env.production
│ env.d.ts
│ index.html
│ package-lock.json
│ package.json
│ README.md
│ tsconfig.config.json
│ tsconfig.json
│ vite.config.ts
│
├───public /* All static assets to the server, as robots.txt and more... */
│ favicon.ico
│
└───src /* In The Begining */
│ App.vue
│ main.ts
│
├───components /* Components for Views and Layouts */
│ Footer.vue
│ Heads.vue
│ Nav.vue
│ Refs.vue
│
├───layouts /* You can add your own Layout files */
│ Default.vue
│ Page.vue
│
├───router /* Define the routes of your app */
│ index.ts
│
└───views /* Change, Add, Remove, and Update the views to your needs */
About.vue
Contacts.vue
Home.vue
Make a new repository from the template and use your favorite package manager to install it. Mine is NPM and the commands are:
npm install
npm run dev
Make sure, that reviewed all settings about the build script are in the package.json file and in the .env.[mode] files.
npm run build