Questions tagged [adonis.js]

Adonis is a full stack, open source MVC framework for Node.js. The framework is inspired by the PHP framework Laravel.

AdonisJs is an MVC Framework for Node.js.

It includes:

  • Lucid ORM
  • Database Migrations
  • Authentication System
  • OAuth
  • Mailing System
  • Data Validator
  • Testing

Learn more on the website and check out the organization on Github.

739 questions
5
votes
1 answer

Error in G * t(hat) : non-conformable arrays

Trying to carry out a PERMANOVA using adonis in R. Added in my data table and factors, however, I keep getting the sample error - Error in G * t(hat) : non-conformable arrays There is no N/A data, and it works with a ready made matrix of data and a…
Bex
  • 51
  • 1
  • 2
5
votes
2 answers

what is the 'use' keyword in javascript?

I am looking at this specific line of code to understand what it is or to find some documentation about it. https://github.com/adonisjs/adonis-rally/blob/c7378d2c3984bffba1049f50e771318ea447107c/app/Model/Channel.js const Lucid = use('Lucid') I am…
shed_fortest
  • 61
  • 1
  • 3
5
votes
2 answers

Adonis JS - Hashing Password

I have gone…
Roy
  • 359
  • 1
  • 4
  • 11
4
votes
2 answers

Missing `pino-pretty` module: `pino-pretty` must be installed separately

I'm using a adonis js project version 5 and node js version 14 and docker version 20 when i build the application things goes normallly but when i create a docker image and run a container docker i got this error any help please thank you node…
sokida
  • 433
  • 1
  • 8
  • 21
4
votes
1 answer

Adonis JS v5 relationship missing model attribute

I am learning how to use the Adonis framework (v5) and as the tradition dictates it, I am creating a todo list api to test it out. The problem I am having is regarding the relationship between the User and Todo entities. Here are the two models: //…
AmiralBl3ndic
  • 406
  • 5
  • 13
4
votes
1 answer

Maximum call stack size exceeded error while using .save() function in AdonisJS

I am trying to create a seeder file in AdonisJS. I have a simple seeder file which adds 2 users in the database. UserSeeder.js 'use strict' /* |-------------------------------------------------------------------------- |…
4
votes
1 answer

use react-chat-elements in ReactJS

I am a newbie React programmer. For now, I am using React ChatBox Component as the front end library and AdonisJS websocket as the backend library to achieve a chat system. However, the React-ChatBox-Component doesn't support send files and photos.…
4
votes
1 answer

How can I use nginx with adonis?

I'm try to make a deploy of one api adonis and I'm trying to use nginx to enable external access to my http requests. I install nginx and go in ssh I go to: cd /etc/nginx vi nginx.conf So, I put this code: #user nobody; worker_processes …
bla
  • 995
  • 3
  • 11
  • 44
4
votes
1 answer

fetch query returning empty array when using params

I'm trying to fetch some values from a mongodb collection using lucid-mongo, and it's returning me an empty array. The functions are essentially copied from others I have somewhere else in my code, just changing where some values are. The params.id…
Filipe
  • 43
  • 4
4
votes
1 answer

Generate UUID in Adonisjs and MySQL isn't working

i have a problem to understand how to create UUID in adonisjs, my database using MySQL. When i'm start server and post data, this id_customer output still in auto-increment model. Anyone can help me how to solving this problem? This is schema code…
chiper4
  • 303
  • 5
  • 18
4
votes
1 answer

How to loop data in RowDataPacket

How to loop data in RowDataPacket. This problem happen because in addonis QueryBuild not return same value as lucid models If I use lucid models every work fine const emp = await EMP.all(); for(let i in emp.rows) { const data =…
TryHard
  • 299
  • 4
  • 19
4
votes
1 answer

How to share code between controllers in adonis js

can anyone suggest me how can I use a custom class for writing all helper methods so that the app doesn't repeat same code again and again in different controllers? How can I share codes between controllers? Thank you
Hkm Sadek
  • 2,987
  • 9
  • 43
  • 95
4
votes
3 answers

Socket.io with Adonis.js

I am using Adonis 4.1.0 and Adonis-websocket is only been available for v3. Can anyone tell me workaround for using socket.io with Adonis 4.1.0?
Tijan Manandhar
  • 322
  • 3
  • 18
4
votes
2 answers

Adonis.js search queries

I'm trying to find a way to execute a search query using AdonisJs but I cannot find any way to do this with Lucid ORM... I'm currently using this, but it's clearly not the right way to make a search query: let posts = yield…
hailton
  • 591
  • 1
  • 3
  • 15
4
votes
3 answers

Can AdonisJs be used for REST APIS?

Sorry for a nooby question. I'd ask it anyway! I am playing around with AdonisJs. I understand it is a MVC framework. But I want to write REST APIs using the said framework. I could not find much help on the internet. I have two questions: Does…
aitchkhan
  • 1,842
  • 1
  • 18
  • 38
1
2
3
49 50