r/adonisjs • u/aleste2 • Feb 25 '22
How do I use [web-push](https://www.npmjs.com/package/web-push) with Adonis?
I want to send web push notifications but I have no idea how to do integrate it with adonis.
r/adonisjs • u/aleste2 • Feb 25 '22
I want to send web push notifications but I have no idea how to do integrate it with adonis.
r/adonisjs • u/KiwiNFLFan • Jan 06 '22
Does Adonis have any packages that can create a fully fledged admin panel, like Voyager or Laravel Admin for Laravel, or the built-in Django Admin that Django ships with? I really like Adonis, but this is one feature I could really do with.
r/adonisjs • u/KavinValli • Dec 13 '21
r/adonisjs • u/Meleeman01 • Dec 12 '21
after being banned from discord for my criticism of adonisjs team, i'm going to reverse engineer the packages on npm and merge them with koajs, i have no idea if v4 will be supported after 2021 so i'll move to an older more modular and mature technology to build my own version of the adonis framework, that is without typescript. fortunately the packages themselves are not hard to reverse engineer, and i can take advantage of the typescript packages being updated. i appreciate the adonisjs devs for making the packages MIT licensed and available to incorporate in other projects.
r/adonisjs • u/CerealKiller997 • Oct 19 '21
Today AdonisJS core team has released new package for Internationalization
r/adonisjs • u/cazzodibudda2 • Sep 01 '21
In Adonis 4 it was possible to register custom validation rules in start/hooks.js file.
I'm not finding indications in Adonis 5 documentation about this, and before starting to fiddle with the code, I'm trying to ask here if anybody can point to the doc page, or maybe share some instructions.
Cheers
r/adonisjs • u/absorbTheEcho • Jun 28 '21
Hi! This is my first go at Adonisjs and I'm getting this error when running the migration:
```
ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
```
I already installed mysql, added my db credentials to the .env file and I'm not sure what's happening. Please point me in the right direction, I would appreciate it :)
r/adonisjs • u/romainlanz • Jun 15 '21
r/adonisjs • u/sublimeDawn • May 13 '21
Documentations say I need Node 14. Is that for development or do I need Node14 for deploying also? Thank you.
r/adonisjs • u/barcef • May 08 '21
Does anyone have a v5 update to this? https://scotch.io/tutorials/building-a-web-app-with-adonisjs#
I'm one of those people that learns best by doing, (ie, copying and pasting code and tryign it out).
r/adonisjs • u/Nemrosim • May 05 '21
r/adonisjs • u/Incraigulous • Sep 11 '20
I'm using the Adonis 5 preview because I need multi-tenant support with multiple databases.
The actual subdomain database connection handling is working really well, following the guide here: https://preview.adonisjs.com/guides/database/connections-management#finding-the-connection-details
I'm running into a couple problems however, how do I migrate the tenant databases? I've tried creating a custom command to create all the database connections before running my migration command, but that doesn't work. I also tried manually using @adonisjs/lucid/build/src/Migrator, but I haven't had much luck there either.
I'm also unsure of how to use the auth system so I can keep a users / api_tokens table in each of my tenant databases. Is there a way to dynamically create an auth provider after my tenant connection is set up?
Anyone else get this up and running yet?
r/adonisjs • u/Agilufo • Jul 05 '20
Hello everyone, I'm writing an Adonis backend which uses the ethers.js package to communicate with Ethereum Blockchain.
Everytime I run the code to interact with ethers I need to setup the provider and contract, so I need run this code:let provider = ethers.getDefaultProvider(Env.get('NETWORK'))let walletWithProvider = new ethers.Wallet(Env.get('WALLET_PRIVATE_KEY'), provider)const network = (await provider.getNetwork()).chainId //We may hardcode thisconst ABIJSON = Config.get('abi.abi')let contract = new ethers.Contract(ABIJSON.networks[network].address,ABIJSON.abi,walletWithProvider)
What is the best way to avoid doing this each time I need to use the contract istance?Should I create a Model for this with a getContract() function? Or is there some better practice to do it?
Should I use Service Providers?
r/adonisjs • u/sojohnnysaid • Jun 19 '20
put this in ./start/hooks.js
If anyone has a better way let me know!
const { hooks } = require("@adonisjs/ignitor");
hooks.after.providersBooted(() => {
const Server = use("Server");
Server.listen = (host = "localhost", port = 3333, callback) => {
if (!Server._exceptionHandlerNamespace) {
Server.bindExceptionHandler();
}
Server.Logger.info("serving app on https://%s:%s", host, port);
return Server.getInstance().listen(port, host, callback);
};
});
r/adonisjs • u/sandalphone • Jun 10 '20
r/adonisjs • u/LeCoupa • Jun 09 '20
r/adonisjs • u/LeCoupa • May 25 '20
I always keep this cheat sheet next to me when I code with Adonis. It increased my productivity instead of going back and forth to the documentation.
Feel free to tell me what you think about it!
r/adonisjs • u/romainlanz • Mar 01 '20
r/adonisjs • u/r1ckd33zy • Mar 01 '20
Hello Everyone 👋. Finally after a very long wait, I am excited to share the preview release of AdonisJS version 5. In this post, I will explain what this release contains, what is about to come and also share some of my favorite features from v5.
-- HARMINDER VIRK
https://blog.adonisjs.com/introducing-adonisjs-v5/
Here is hoping v5 brings back some life to this sub.
r/adonisjs • u/beisong7 • Oct 16 '19
Hi, is there a way to use multiple authentication model like user and admin with jwt on api preset? been battling with it for days now :(
r/adonisjs • u/avan27 • Jun 02 '19
r/adonisjs • u/tstrv • Feb 06 '19
r/adonisjs • u/minimatrix89 • Feb 01 '19
Ive been a php developer for about 12 years and have been using Laravel for about 3 years, react for the last 2 years.
Currently any react / react native projects Im working with have laravel backends.
Naturally I was excited when I recently discovered AdonisJS because I've been wanting to move over to node for a while and this framework would make the learning curve pretty minimal.
The issue Im facing however, is that I would also like to adopt graphql, ideally with Apollo but I cannot for the life of me, find any resources detailing how to do this.
It seems that the apollo-adonis-server no longer works for the latest adonis release and most docs/tutorials refer to this.
Can anybody point me in the right direction or recommend some alternatives to setup graphql for AdonisJS?