My blogs
conda create --name django-env
activate django-env #activate the environment
_Remember to install all commands below inside conda env_ (django_env
)
python -m pip install Django
python -m pip install django-cors-headers
npm install -g vue-cli
npm i axios
{frontend_project_dir}/node_modules/typescript
)
npm install typescript
or
npm install -g typescript
add this line to {frontend_project_dir}/jsconfig.json
"jsx": "preserve",
{
"compilerOptions": {
"target": "es5",
"jsx": "preserve",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
// "./src/**/*.ts"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}