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

Can't access Adonis from Docker Container

I use Docker to contain my Adonis app. The build was success but when I access the app, I got ERR_SOCKET_NOT_CONNECTED or ERR_CONNECTION_RESET. My docker compose contains adonis and database. Previously, I use the setup similar with this for my…
tirta keniten
  • 397
  • 4
  • 13
1
vote
1 answer

Why the size of my upload file of Cloud Storage Cloud is it "0 bytes" (Node)

i try upload a pdf to Google cloud Storage but i dont know why the file size is 0 bytes... already i have try resolve this during 3 days but i not have response.. this is my code: const cv = request.file('cv') console.log(cv) …
1
vote
1 answer

How can I connect with X509 by putting all options in the connection string in node.js driver for mongodb?

I'm using the keys available in mongodb docs for a self-signed certificate using X509 authentication with a Node.js Driver. When trying to connect to the database I get the following error: MongoNetworkError: failed to connect to server…
pmpc
  • 315
  • 4
  • 19
1
vote
1 answer

How to use session authentication for nuxt frontend with adonis backend

I used to use adonuxt which worked nice but it's depreciated. So I am now trying to use nuxt.js separate with adonis backend. I am trying to make login system. These two projects run on two separate port in localhost. http://localhost:3000/ nuxt…
Hkm Sadek
  • 2,987
  • 9
  • 43
  • 95
1
vote
1 answer

CORS issue while sending request to Node Server using Axios

I am stumbled upon a problem, perhaps some one can help. Currently i have installed axios via npm in react project and while sending a request to node backend i am getting the following error Access to XMLHttpRequest at…
user13977234
1
vote
1 answer

Redirect users in adonis js without permission

I have this in my view @if(auth.user.id == post.user_id)
Tobi Ferdinand
  • 137
  • 1
  • 12
1
vote
1 answer

Cannot find module 'debug'

I got this error today. Im using adonisjs and i cant find any "debug" referece. Am I forgeting something? Error: Cannot find module 'debug' Require stack: - C:\ProjetosNode\buscanota_ck\node_modules\@adonisjs\ignitor\src\Ignitor\index.js -…
Ramon
  • 39
  • 2
  • 10
1
vote
1 answer

How to query pivot table in Adonis Js

I have a pivot table of category_post which contains the post_id and category_id i also have Post Model categories(){ return this.belongsToMany('App/Models/Category') } Category posts(){ return…
Tobi Ferdinand
  • 137
  • 1
  • 12
1
vote
1 answer

Dockerize adonis.js + mysql

I'm trying to dockerize an existing adonis.js app and MySQL through docker-compose. Here is my Dockerfile FROM node:12.18.2-alpine3.9 ENV HOME=/app RUN mkdir /app COPY package.json $HOME WORKDIR $HOME RUN npm i -g @adonisjs/cli && npm…
Agilulfo
  • 101
  • 3
  • 10
1
vote
1 answer

Adonis js Drop column when migration:rollback

I am using adonis js to make a website. I need to add certain columns to an existing table via migration and also drop those columns when I run "adonis migration:rollback". How do I write the migration down() function? The Code that I mention below…
1
vote
1 answer

Adonis Query Builder: Conditional Count

so what I want to do is group list by date, and on that group, I want to count a column with a specific value. Here is a sample values of that table: [ { id: 1, delivery_date: 2020-06-01, order_status: 0, quantity: 2 }, { …
frost kazuma
  • 350
  • 1
  • 8
  • 24
1
vote
1 answer

Regex filtering and excluding forbidden words

Trying to fulfill these requirements: Alphanumeric allowed [a-zA-z0-9] or \w+ Only numbers NOT allowed At least 8 characters \S{8,} Forbidden words: Test, pimba, vraw ^(!?.*Test|pimba|vraw).*$ or \b(?:(?!word)\w)+\b The problem is I can't mix…
PlayHardGoPro
  • 2,791
  • 10
  • 51
  • 90
1
vote
0 answers

net::ERR_INCOMPLETE_CHUNKED_ENCODING 200 (OK) in nuxt.js

I am using adonuxt (adonis.js, nuxt.js), my project works locally nicely but it doesn't work fully in live server. My node version in local and live server is same as well. for some reason one file is not loading and getting failed error in the…
Hkm Sadek
  • 2,987
  • 9
  • 43
  • 95
1
vote
1 answer

400 Bad Request with Adonisjs websocket

I'm runing a localhost adonisjs project with a websocket. I followed the adonis get started here. Everything in the server looks ok, but when I tried to connect in my react-native application a got this error: { "isTrusted": false, "message":…
1
vote
1 answer

Adonis: How to add an index to a column that already exists?

I have some existing columns in my table that I want to add an index on. How can I proceed? From the documentation it says: table..index([indexName], [indexType]) // Specifies column as an index. But what does indexName mean?
Julien Le Coupanec
  • 7,742
  • 9
  • 53
  • 67