Skip to content

robertoachar/playground-koa-jwt

Repository files navigation

playground-koa-jwt

Generated by Node Project Generator.

License

A playground for Koa with JWT.

Development

  • Clone the repo
$ git clone https://github.com/robertoachar/playground-koa-jwt.git
  • Install dependencies
$ npm install
  • Run scripts
Action Usage
Start development mode npm start
Lint code npm run lint

Environment

# .env file
NODE_ENV = development
PORT = 3000
JWT_SECRET = 124356

Endpoints

Method Endpoint Description
POST /login Login (admin : 123456)
GET /public Public area
GET /protected Protected area

Author

Roberto Achar

License

MIT