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
-1
votes
1 answer

how to access to my local directory files and return response.json at adonis 5

Hello im using adonis 5 for to make a API REST, in this moment im reading the oficial guide and i not found a way for to access and return files in my response.json (In AdonisJs 4.1 i can to make this using "Drive"), i only found how to save files…
Gario3
  • 139
  • 2
  • 13
-1
votes
1 answer

How to pass parameter to shell script in Adonis JS?

I am trying to run a shell script from a post request, I want to pass parameter from the post request to this shell script. const Helpers = use('Helpers') const util = require('util') const exec = util.promisify(require('child_process').exec) const…
-1
votes
2 answers

Adonis: ReferenceError view is not defined

I have controller like this class TicketController { index(){ return view.render('tickets') } } and create file in resource\view\tickets.edge and my route is const Route = use('Route') Route.resource('tickets',…
paranoid
  • 6,799
  • 19
  • 49
  • 86
-1
votes
2 answers

How to lowerCase information before Validator starts

I want to know how may I apply lowerCase() before the regex validation starts. return { name: [ rule('required') rule('regex', '/^(?=\S*[a-z])\S{8,}$/') ] } How may I make name lowerCase before validation starts?
PlayHardGoPro
  • 2,791
  • 10
  • 51
  • 90
-1
votes
1 answer

Adonis.js, Ionic and Cors

I'm trying to get CORS working on my adonis.js backend and ionic front end but I can't get anything working for some reason. I've added the cors provider to my app.js const providers = [ '@adonisjs/framework/providers/AppProvider', …
LeeR
  • 1,609
  • 11
  • 29
-1
votes
1 answer

TypeError: schemaInstance[direction] is not a function

Less of a question and more of an answer. Using AdonisJS and I got this after running: adonis migration:refresh The issue was that I didn't have the down method defined. down () { }
Marc Raaz
  • 39
  • 2
-1
votes
1 answer

Property undefined but the console.log() prints the property

I have this function: async geraQuiz(idEstudante) { let idioma = new Array() let livrosUnidadesGerarQuiz = new Array() const idsClassesEstudante = await this.getIdClassesEstudante(idEstudante) // Here i have this array return: [2,3] for(let…
bla
  • 995
  • 3
  • 11
  • 44
-1
votes
2 answers

Adonis.js populate all with related tables data

I use MySql, all relationships have been configured correctly in models and schemas: I have 3 tables: 1. posts ( main ) 2. categories ( 1 post has 1 cat, 1 cat belongs to many posts ) 3. tags ( many-to-many ) Categories and tags both have "post_id"…
-1
votes
1 answer

Adonis js- Load common header footer,Internal css and Internal js to view

I am new to Adonisjs and I am trying to load header, footer and the view file from controller in a common template and display the data from controller in the view file. Kindly help me get through this. Thanks
Balaji Rajendran
  • 357
  • 5
  • 17
-1
votes
1 answer

adonisjs github collaboration not possible?

I’m working with a friend to make a web application using adonisjs. I have the front page done and it is looking pretty slick at localhost:3333. I need my partner who joined the repository to be able to work on it as well. He cloned my repo after…
-1
votes
1 answer

When I try to install adonis Cli I get permison error

When I try to install adonis Cli I get this permison error: npm ERR! path ../lib/node_modules/@adonisjs/cli/index.js npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall symlink npm ERR! Error: EACCES: permission denied, symlink…
-1
votes
2 answers

Why my Node.js server is listening to port and Adonis.js not?

My English is poor sorry. I'm using AdonisJs, but have a problem. Adonis console running and showing no error but host not working. You can see the problem from below screenshot I'm running vagrant and here's my vagrantfile. Vagrant.configure("2")…
free
  • 3
  • 4
-2
votes
1 answer

I have getting error when i'm using message.htmlView to send mail in adonis js

enter image description here The error: Error: "@adonisjs/view" must be installed before using "message.htmlView" I have installed this package but still getting error.
-2
votes
1 answer

Is there any way to read file as a File object in nodejs?

I want to get local file as a file object no Buffer, I need File{} object. readSync giving me Buffer.
-2
votes
3 answers

How can I wait for my "request" and response back to front end?

I am working on the Zoom API now. I want to send my token from ZOOM API to front-end as a response. However, "token from request" is always printed first and undefined! Then the token from Zoon API" will be followed with the token. How can I make it…
Yuyang Zhou
  • 41
  • 1
  • 3
1 2 3
49
50