How to migrate adonisjs app from api-only to another template?


#1

Hi, I’m new to adonisjs
I have implemented some adonisjs features for my server API purpose.
Now I’m implementing socket to work with my client app with push notification.

I followed tutorial here https://adonisjs.com/docs/4.1/websocket
I grabbed the gist and added them to public/style.css and resources/views/chat.edge

I ran the server and go to the chat page route but got this

Anyone can help?
Do I have to install any dependencies related to use the view?


#2

In your start/app.js file on providers array you should add '@adonisjs/framework/providers/ViewProvider',


#3

It’s workin, thank you so much


#4

you’re welcome