zmts / supra-api-nodejs Goto Github PK
View Code? Open in Web Editor NEW❤️ Node.js REST API boilerplate
License: MIT License
❤️ Node.js REST API boilerplate
License: MIT License
Hello, i’m just trying to implement your structure but I cannot access the swagger-ui. Could you share how to access it?
First of all, I would like to say thanks to share this great structure.
Hi,
User creation returns error,
{
"name" : "Sasi",
"username" : "Sasi",
"email" : "[email protected]",
"location" : "yyyyy",
"password" : "****"
}
"code": "TOKEN_NOT_SIGNED_ERROR",
"message": ""subject" must be a string",
"description": "Token not signed",
Kindly help me in this
Hi Team,
All the endpoints accessible without access token,
Is it Normal ?
Hi,
I want to add, Extra filed in ctx.currentUser (User Role).
Can you help me in this ?
Thanks for the wonderful work
I did all the steps you mentioned.
While i run npm run start Or npm run dev am getting error
npm ERR! missing script: dev
Though I don't understand 90% of your code :D, but by just looking at it's structure and dependancies, I'm sure that it's well beyond my skills. I can't even comprehend most of the codes.
Just discouraging. Maybe, comfort this noob? :D
Soo, What does it take to do something like this? I don't see myself doing something like this in the next 1 to 2 years plus my previous 2 years self-study. Udemy courses don't even teach these kind of complexity. Where do I start? How can I break this down and start understanding its parts?
Hi Team,
Again thanks for wonderful Support.
We have one more issue; Is it possible to use Supra with NoSQL Data Base such as MongoDB.
It's working good with MySQL, MSSQL, Postgresql
I'm getting following error while running this command - knex migrate:latest
`C:\Users\Codeclouds-Ramanath\Desktop\supra-api-nodejs>knex migrate:latest
Using environment: development
internal/crypto/keys.js:322
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type string or an instance of Buffer, TypedArray, DataView, or KeyObject. Received null
at prepareSecretKey (internal/crypto/keys.js:322:11)
at new Hmac (internal/crypto/hash.js:111:9)
at Object.createHmac (crypto.js:147:10)
at createHMAC (C:\Users\Codeclouds-Ramanath\Desktop\supra-api-nodejs\node_modules\pg\lib\sasl.js:133:17)
at Hi (C:\Users\Codeclouds-Ramanath\Desktop\supra-api-nodejs\node_modules\pg\lib\sasl.js:137:13)
at Object.continueSession (C:\Users\Codeclouds-Ramanath\Desktop\supra-api-nodejs\node_modules\pg\lib\sasl.js:32:24)
at Connection. (C:\Users\Codeclouds-Ramanath\Desktop\supra-api-nodejs\node_modules\pg\lib\client.js:192:10)
at Connection.emit (events.js:315:20)
at Connection.EventEmitter.emit (domain.js:486:12)
at Socket. (C:\Users\Codeclouds-Ramanath\Desktop\supra-api-nodejs\node_modules\pg\lib\connection.js:121:12) {
code: 'ERR_INVALID_ARG_TYPE'
}`
I have set following env var for the db connection -
DB_HOST = 'localhost'
DB_PORT = 5432
DB_USER = 'postgres'
DB_PASSWORD = ''
DB_NAME = 'nodepgsql'
DB_CHARSET = 'utf8'
Hi Team,
How can we use multiple DataBase Connection ?
Hello,
I am getting the error: "message": "Access denied, don't have permissions." when trying to logout.
I have my added the "refreshToken": "my_refresh_token" under the JSON application body and I don't understand why I am getting the above error message. Let me know what I am missing or what I am doing wrong on my postman.
Thanks.
Hi,
How can we handle multiple roles per users?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.