Git Product home page Git Product logo

mkrn-starter's People

Contributors

bitech-ag-rm avatar dependabot[bot] avatar joshuaslate avatar monkeywithacupcake 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

Watchers

 avatar  avatar  avatar  avatar  avatar

mkrn-starter's Issues

Are User endpoint protected?

I am testing the user endpoint without passing a Token, only a user id, but I am getting all the users or the user for that id. So if I am not logged in, I am able to access those enpoints?

webpack port wont change

Hi,

After I success install the frontend. it can be run on port 8080. Then I change to 8082. It wont change to 8082. I have tried to reclone, reinstall. Still the same. Is this because webpack save something like cache?

New password

Josh
You have another small issue, after generating token for password reset, the new password is stored in the database in Plain Text.

Use requireRole as a middleware?

I've tried to use requireRole as a middleware combined with jwtAuth (used koa-combine for combining middleware) but I get an error.

middleware must be a function not object

I also pass it like this:
requireRole(ROLES.ADMIN)

JWT Token

Hi Josh It sounds like a stupid question, but how do you pass the token on your GET method. In postman i am trying to pass on the header key:Authorization value:Bearer MyToken.
Sorry to send this as a ticket , even if it´s not one

User PUT method

Hi Josh, sorry to disturb you again,
On you PUT endpoint (/user/:id), I am passing the id on the path, the Token on the HEADER and a JSON object with the fields i want to update on the BODY.
It s giving me a 404 error and checking inside "exports.editUser" the constant safeData is always undefined because of ctx.Body is undefined too. How are you passing the fields to be updated?

User validation failed: name.last: Path `name.last` is required.

Really small issue. When registering a new user the "user.js" schema does not match. I resolved by commenting out the requirement for first and last name. This is just a work in progress issue :)

ValidationError: User validation failed: name.last: Path...

 name:{
    type: String,
    required: true
  },
  // name: {
  //   first: { type: String, required: true },
  //   last: { type: String, required: true },
  // },

problem with 'koa-logger'

i got this
node_modules/koa-logger/index.js:36
return async function logger (ctx, next) {
^^^^^^^^

SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (home/mkrn-starter-master/api/index.js:3:16)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)

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.