How to setup VueJs vite version (not Vue CLI) with Django - django

I have seen many people set up Vue with django using the Vue CLI, it is now deprecated.
I tried to set it up with the new Vue way 'npm init vue#latest' that uses Vite, but wasnt successfull.
I have been using the Vue CDN but it lacks the components stuff

Related

How to use Django and angular together?

I've a django backend and angular frontend, on my local machine to use both together, I've to run both server's using ng serve and python manage.py runserver but now I'm planning to deploy it to heroku and I've no idea how will it work, also is there any official guide for using django and angular together.
P.S. - I'm using django-rest-framework for making api calls from frontend to backend.
i never do it before but i think you can do it separately
deploy your django: Heroku django
then deploy your angular app Heroku angular
change your base url to heroku urls
i hope that it would help you :D

Using simple auth without Ember-cli

I want to use simple auth without Ember-cli. Up until version 0.8.0, simple auth was distributed as a bower addon, and could be imported with the AMD module inside the bower package (ember-simple-auth/simple-auth.amd.js). Since I want to use the newest version of Ember and Ember Data, I also need to update the simple auth version to version 1.0.1.
How do I use the new version without Ember-cli?
You cannot use Ember Simple Auth without Ember CLI anymore.

Migrate from Ember Start Kit (not appkit) to Ember.cli

I have a node.js backend server and an ember front-end project which is together:
public\js -> contains all the ember app stuff
app\ -> contains the node.js files
server.js -> main express server code
I would like to migrate to use ember-cli. I've tried the migrator and running ember init but both do not really work and give me errors. Most the documentation talks about migrating from EmberAppKit which I didn't use, but use my own grunt script to complie the templates and uglify and minify the css and js files.
How should I go about migrating such a project to Ember-cli? I'm very confused..please help.
Thanks!

Component exposed in ember addon is not recognised in ember app

I have an addon that records integration tests for ember:
https://github.com/QuantumInformation/ember-cli-test-recorder
However I find that when I import it into an ember cli project via npm and then use the component it exposes like so in appplication.hbs:
<h2 id="title">Welcome to Ember.js</h2>
{{outlet}}
{{test-recorder currentRouteName=currentRouteName}}
I get the following at runtime:
`Uncaught Error: Assertion Failed: A helper named 'test-recorder' could not be found
Note that the component works fine in the dummy app and this addon used to work in version 1.10 of ember.
Using ember cli 0.2.5 for both addon and ember project in this case
Running ember install ember-cli-test-recorder solved this for me.
For some reason just running npm install ember-cli-test-recorder wasn't enough.

Migrating App Kit to Ember CLI - ReferenceError window is not defined

After discovering that Ember App Kit along with useage of Grunt are depricated now, I installed Ember CLI and tried to migrate a fresh copy of the App Kit to Ember CLI by running 'ember init', but I got this error 'ReferenceError: window is not defined at Object.'. I also ran 'npm install' and 'bower install' to get dependent modules, but still 'ember init' won't run. It seems that there's a problem with 'window' in 'config\environment.js'.
Rather than migrating the old App Kit, shouldn't we have a new starter kit based on Ember CLI?
While the old EAK project site suggests that you can migrate it to CLI, I found that to be problematic. But there's no need to start with the EAK anymore since Ember CLI will scaffold up a new starter project for you.