Generated by Node Project Generator.
A playground for Koa with JWT.
- 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 |
# .env file
NODE_ENV = development
PORT = 3000
JWT_SECRET = 124356
Method | Endpoint | Description |
---|---|---|
POST | /login |
Login (admin : 123456 ) |
GET | /public |
Public area |
GET | /protected |
Protected area |