Frontend
All our web projects frontends are made with Vue specifically Nuxt.
Simple vue project
To start a simple vue project it is recommended to use vue init
sh
yarn create vue@latestnpm
sh
npm create vue@latestNuxt project
To start a nuxt project it is recommended to use npx create-nuxt-app
sh
npx nuxi@latest init <project name>Recommended choices
sh
? Which package manager would you like to use? Yarn
? Initialize git repository? YesConfiguration of Typescript in nuxt project.
If you are not yet fluent in typescript it is recommended that in your nuxt.config.ts you change the strict option:
js
export default defineNuxtConfig({
...
typescript:{
strict:false,
},
...
})When using external packages that may require typings look on NPM for the @types/<package name> package, install and add it to your tsconfig.json:
sh
yarn add -D @types/lodashthen in tsconfig.json :
json
...
"types": [
"@nuxt/types",
"@nuxtjs/axios",
"@types/node",
"@types/lodash
]
...