Giter Site home page Giter Site logo

zmts / supra-api-nodejs Goto Github PK

View Code? Open in Web Editor NEW
323.0 19.0 84.0 5.12 MB

❤️ Node.js REST API boilerplate

License: MIT License

JavaScript 99.67% HTML 0.29% Shell 0.04%
nodejs api restful architecture sql postgresql objectionjs express-boilerplate nodejs-api refresh-token

supra-api-nodejs's People

Contributors

zmts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

supra-api-nodejs's Issues

How to access swagger-ui?

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.

User Creation error

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

npm ERR! missing script: dev

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

What does it take to do something like this?

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?

Supra with MongoDB

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

'ERR_INVALID_ARG_TYPE' - error

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

DB_HOST = 'localhost'
DB_PORT = 5432
DB_USER = 'postgres'
DB_PASSWORD = ''
DB_NAME = 'nodepgsql'
DB_CHARSET = 'utf8'

Access Denied during Logout

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.